From: Nick Ing-Simmons <nik@tiuk.ti.com>
Date: Thu, 12 Jul 2001 11:11:44 +0000 (+0000)
Subject: Honour void-ness of my_exit()
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=190e4ad02ede9c6b01b1592b98f2bc361e74d384;p=p5sagit%2Fp5-mst-13.2.git

Honour void-ness of my_exit()

p4raw-id: //depot/perlio@11295
---

diff --git a/win32/win32.c b/win32/win32.c
index 85068b8..a0ebe03 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);
 }