diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-07-12 11:11:44 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-07-12 11:11:44 +0000 |
commit | 190e4ad02ede9c6b01b1592b98f2bc361e74d384 (patch) | |
tree | 86079229378c504682d2e8daeb4afd7953250532 /win32 | |
parent | 50033ab97dd66fb1373aca9bbb50053640a18e73 (diff) | |
download | perl-190e4ad02ede9c6b01b1592b98f2bc361e74d384.tar.gz |
Honour void-ness of my_exit()
p4raw-id: //depot/perlio@11295
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c index 85068b8966..a0ebe03d12 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -3362,8 +3362,10 @@ win32_execvp(const char *cmdname, const char *const *argv) dTHXo; /* if this is a pseudo-forked child, we just want to spawn * the new program, and return */ - if (w32_pseudo_id) - return my_exit(win32_spawnvp(P_WAIT, cmdname, (char *const *)argv)); + if (w32_pseudo_id) { + my_exit(win32_spawnvp(P_WAIT, cmdname, (char *const *)argv)); + return 0; + } #endif return execvp(cmdname, (char *const *)argv); } |