diff options
Diffstat (limited to 'win32/win32.c')
-rw-r--r-- | win32/win32.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/win32/win32.c b/win32/win32.c index 5437cb6c38..84c929d371 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1071,17 +1071,13 @@ child_result(struct ChildRecord *child, int mode) return -1; } - switch (mode) { - case P_NOWAIT: - return child->pid; - case P_OVERLAY: + if (mode == P_OVERLAY) { WaitForSingleObject(child->hProcess, INFINITE); GetExitCodeProcess(child->hProcess, &exitcode); CloseChildHandle(child); _exit(exitcode); - default: - UNREACHABLE; } + return child->pid; } /* License: Ruby's */ |