From 4988f3c4cc3cb9e8b1ccb06e84768c177cb13385 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Tue, 17 May 2016 08:29:14 +0100 Subject: 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. --- shell/ash.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'shell') 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) new = forkshell_prepare(fs); sprintf(buf, "%x", (unsigned int)new->hMapFile); argv[2] = buf; - pid = mingw_spawn_applet(P_NOWAIT, "sh", argv, - (const char *const *)environ); + pid = spawn(argv); CloseHandle(new->hMapFile); UnmapViewOfFile(new); if (pid == -1) { -- cgit v1.2.3-55-g6feb