]> gitweb.factorcode.org Git - factor.git/commitdiff
Clarify wait-for-process docs
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Thu, 11 Dec 2008 01:16:49 +0000 (19:16 -0600)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Thu, 11 Dec 2008 01:16:49 +0000 (19:16 -0600)
basis/io/launcher/launcher-docs.factor

index 45bbec20e345cd0cd9d70a4da7c26edfd56e1752..358521473540ce253234015f96c15a63ed1f62a9 100644 (file)
@@ -143,8 +143,9 @@ HELP: <process-stream>
 { $description "Launches a process and redirects its input and output via a pair of pipes which may be read and written as a stream of the given encoding." } ;
 
 HELP: wait-for-process
-{ $values { "process" process } { "status" integer } }
-{ $description "If the process is still running, waits for it to exit, otherwise outputs the exit code immediately. Can be called multiple times on the same process." } ;
+{ $values { "process" process } { "status" object } }
+{ $description "If the process is still running, waits for it to exit, otherwise outputs the status code immediately. Can be called multiple times on the same process." }
+{ $notes "The status code is operating system specific; it may be an integer, or another object (the latter is the case on Unix if the process was killed by a signal). However, one cross-platform behavior code can rely on is that a status code of 0 indicates success." } ;
 
 ARTICLE: "io.launcher.descriptors" "Launch descriptors"
 "Words which launch processes can take either a command line string, a sequence of command line arguments, or a " { $link process } "."