diff options
author | Ron Yorston <rmy@pobox.com> | 2021-02-14 12:27:27 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-02-14 12:27:27 +0000 |
commit | 4340e4d3d581c438a8634868c838f73b9018fb8b (patch) | |
tree | 6a58026ab635aa819524360f81d6799bd7aa1dab /shell | |
parent | 0168043f32e0ed03e3742d0b5768c49c1df27bff (diff) | |
download | busybox-w32-4340e4d3d581c438a8634868c838f73b9018fb8b.tar.gz busybox-w32-4340e4d3d581c438a8634868c838f73b9018fb8b.tar.bz2 busybox-w32-4340e4d3d581c438a8634868c838f73b9018fb8b.zip |
ash: code shrink
Since there's only one call to mingw_spawn_forkshell() we might
as well just call spawnve() directly from ash.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
15713 | new->nprocs = jp == NULL ? 0 : jp->nprocs; | 15713 | new->nprocs = jp == NULL ? 0 : jp->nprocs; |
15714 | sprintf(buf, "%p", new->hMapFile); | 15714 | sprintf(buf, "%p", new->hMapFile); |
15715 | argv[2] = buf; | 15715 | argv[2] = buf; |
15716 | ret = mingw_spawn_forkshell(argv); | 15716 | ret = spawnve(P_NOWAIT, bb_busybox_exec_path, (char *const *)argv, environ); |
15717 | CloseHandle(new->hMapFile); | 15717 | CloseHandle(new->hMapFile); |
15718 | UnmapViewOfFile(new); | 15718 | UnmapViewOfFile(new); |
15719 | if (ret == -1) { | 15719 | if (ret == -1) { |