diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-21 06:10:12 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-21 06:10:12 +0000 |
commit | d820362c5001c1f35992da9a3728769f56ef68ff (patch) | |
tree | b9d0d219c99acc62352e437a76c7b378ec2ceb30 | |
parent | 0152ff5c241beb91eda2a4e46c3e4857c572532a (diff) | |
download | ruby-d820362c5001c1f35992da9a3728769f56ef68ff.tar.gz |
* win32/win32.c (do_spawn, do_aspawn): should wait child process even
if callded with P_OVERLAY.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | win32/win32.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Tue Oct 21 15:08:53 2003 NAKAMURA Usaku <usa@ruby-lang.org> + + * win32/win32.c (do_spawn, do_aspawn): should wait child process even + if callded with P_OVERLAY. + Tue Oct 21 00:35:02 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org> * test/soap/calc/*, test/soap/helloworld/*: catch the exception from diff --git a/win32/win32.c b/win32/win32.c index 0e75f431a1..cbcecb6f8e 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -758,6 +758,7 @@ char *cmd; case P_NOWAIT: return child->pid; case P_OVERLAY: + WaitForSingleObject(child->hProcess, INFINITE); exit(0); default: return -1; /* not reached */ @@ -848,6 +849,7 @@ char **argv; case P_NOWAIT: return child->pid; case P_OVERLAY: + WaitForSingleObject(child->hProcess, INFINITE); exit(0); default: return -1; /* not reached */ |