From b1ce6fe804638ec34c5078ee152f84b59c366bee Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 20 Sep 2007 08:32:03 +0000 Subject: * 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 --- process.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'process.c') 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. detach 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 Thread#join 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); -- cgit v1.2.3