summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-21 06:10:12 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-21 06:10:12 +0000
commitf39ca14cc529089f6644bad008273666bd1e1a4a (patch)
treeb9d0d219c99acc62352e437a76c7b378ec2ceb30
parent90e524bb0cd9f43b72dab1de4e81dd51f8d43133 (diff)
downloadruby-f39ca14cc529089f6644bad008273666bd1e1a4a.tar.gz
ruby-f39ca14cc529089f6644bad008273666bd1e1a4a.tar.xz
ruby-f39ca14cc529089f6644bad008273666bd1e1a4a.zip
* 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
-rw-r--r--ChangeLog5
-rw-r--r--win32/win32.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 376d7d305..dc52f3510 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 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 */