summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c6
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);
}