diff options
Diffstat (limited to 'win32/win32.c')
-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 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 */ |