From 4340e4d3d581c438a8634868c838f73b9018fb8b Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sun, 14 Feb 2021 12:27:27 +0000 Subject: ash: code shrink Since there's only one call to mingw_spawn_forkshell() we might as well just call spawnve() directly from ash. --- shell/ash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell') diff --git a/shell/ash.c b/shell/ash.c index f8a18cdc5..5c6eb5759 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -15713,7 +15713,7 @@ spawn_forkshell(struct forkshell *fs, struct job *jp, union node *n, int mode) new->nprocs = jp == NULL ? 0 : jp->nprocs; sprintf(buf, "%p", new->hMapFile); argv[2] = buf; - ret = mingw_spawn_forkshell(argv); + ret = spawnve(P_NOWAIT, bb_busybox_exec_path, (char *const *)argv, environ); CloseHandle(new->hMapFile); UnmapViewOfFile(new); if (ret == -1) { -- cgit v1.2.3-55-g6feb