diff options
| author | Ron Yorston <rmy@pobox.com> | 2026-06-30 17:50:30 +0100 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2026-06-30 17:50:30 +0100 |
| commit | c2bf59a9ff757c0b1dc45dcf5a42dcc08a3c7d57 (patch) | |
| tree | 907be94a92c267abe31769c14862aabe3c0123c8 /shell | |
| parent | f16e9b40a381618573211b4e82162e819eec1587 (diff) | |
| download | busybox-w32-c2bf59a9ff757c0b1dc45dcf5a42dcc08a3c7d57.tar.gz busybox-w32-c2bf59a9ff757c0b1dc45dcf5a42dcc08a3c7d57.tar.bz2 busybox-w32-c2bf59a9ff757c0b1dc45dcf5a42dcc08a3c7d57.zip | |
ash: only report background jobs in root shell
Background jobs were being reported in shells other than an
interactive, top-level shell.
Suppress this unnecessary report.
Adds 16 bytes.
Signed-off-by: Ron Yorston <rmy@pobox.com>
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 b8a200b64..7f2bbcde9 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
| @@ -6234,7 +6234,7 @@ forkparent(struct job *jp, union node *n, int mode, HANDLE proc) | |||
| 6234 | backgndpid = pid; /* set $! */ | 6234 | backgndpid = pid; /* set $! */ |
| 6235 | set_curjob(jp, CUR_RUNNING); | 6235 | set_curjob(jp, CUR_RUNNING); |
| 6236 | #if ENABLE_PLATFORM_MINGW32 | 6236 | #if ENABLE_PLATFORM_MINGW32 |
| 6237 | if (iflag && jp && jp->nprocs == 0) | 6237 | if (rootshell && iflag && jp && jp->nprocs == 0) |
| 6238 | fprintf(stderr, "[%d] %"PID_FMT"d\n", jobno(jp), pid); | 6238 | fprintf(stderr, "[%d] %"PID_FMT"d\n", jobno(jp), pid); |
| 6239 | #endif | 6239 | #endif |
| 6240 | } | 6240 | } |
