summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-20 08:32:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-20 08:32:03 +0000
commitb1ce6fe804638ec34c5078ee152f84b59c366bee (patch)
treeb6d1e8a64ce3350cc0ce99f57724fe3c0c2011cc /process.c
parentd74f74a4b0b2da49554a0642eb50d3c15ee98fd5 (diff)
* process.c (proc_prepare_args): commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/process.c b/process.c
index 59ad153653..c4d0021d11 100644
--- a/process.c
+++ b/process.c
@@ -882,6 +882,11 @@ rb_detach_process(pid)
* terminate. <code>detach</code> only checks the status
* periodically (currently once each second).
*
+ * The waiting thread returns the exit status of the detached process
+ * when it terminates, so you can use <code>Thread#join</code> to
+ * know the result. If specified _pid_ is not a valid child process
+ * ID, the thread returns +nil+ immediately.
+ *
* In this first example, we don't reap the first child process, so
* it appears as a zombie in the process status display.
*
@@ -1202,6 +1207,8 @@ proc_prepare_args(e, argc, argv, prog)
VALUE *argv;
VALUE prog;
{
+ int i;
+
MEMZERO(e, struct rb_exec_arg, 1);
if (prog) {
SafeStringValue(prog);