summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 50cf1c4cb3..85068b8966 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -3363,7 +3363,7 @@ win32_execvp(const char *cmdname, const char *const *argv)
/* if this is a pseudo-forked child, we just want to spawn
* the new program, and return */
if (w32_pseudo_id)
- return win32_spawnvp(P_WAIT, cmdname, (char *const *)argv);
+ return my_exit(win32_spawnvp(P_WAIT, cmdname, (char *const *)argv));
#endif
return execvp(cmdname, (char *const *)argv);
}