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 | f39ca14cc529089f6644bad008273666bd1e1a4a (patch) | |
| tree | b9d0d219c99acc62352e437a76c7b378ec2ceb30 /win32 | |
| parent | 90e524bb0cd9f43b72dab1de4e81dd51f8d43133 (diff) | |
* win32/win32.c (do_spawn, do_aspawn): should wait child process even
if callded with P_OVERLAY.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
| -rw-r--r-- | win32/win32.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c index 0e75f431a..cbcecb6f8 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 */ |
