aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2016-05-17 08:29:14 +0100
committerRon Yorston <rmy@pobox.com>2016-05-18 08:43:42 +0100
commit4988f3c4cc3cb9e8b1ccb06e84768c177cb13385 (patch)
tree06f4b1b13ffab2c9ceb278d9d6e5b7caad2d2355 /shell
parent864141a5cc9c52b0cbed7e248b846af42ce70162 (diff)
downloadbusybox-w32-4988f3c4cc3cb9e8b1ccb06e84768c177cb13385.tar.gz
busybox-w32-4988f3c4cc3cb9e8b1ccb06e84768c177cb13385.tar.bz2
busybox-w32-4988f3c4cc3cb9e8b1ccb06e84768c177cb13385.zip
win32: adjustments to spawn functions
Make mingw_spawn_applet and mingw_spawn_1 static. The return value from spawnve is an exit code in synchronous mode and a process handle in asynchronous mode. Pass these upwards without interpretation.
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 5870a23f3..340115c35 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -14005,8 +14005,7 @@ spawn_forkshell(struct job *jp, struct forkshell *fs, int mode)
14005 new = forkshell_prepare(fs); 14005 new = forkshell_prepare(fs);
14006 sprintf(buf, "%x", (unsigned int)new->hMapFile); 14006 sprintf(buf, "%x", (unsigned int)new->hMapFile);
14007 argv[2] = buf; 14007 argv[2] = buf;
14008 pid = mingw_spawn_applet(P_NOWAIT, "sh", argv, 14008 pid = spawn(argv);
14009 (const char *const *)environ);
14010 CloseHandle(new->hMapFile); 14009 CloseHandle(new->hMapFile);
14011 UnmapViewOfFile(new); 14010 UnmapViewOfFile(new);
14012 if (pid == -1) { 14011 if (pid == -1) {