summaryrefslogtreecommitdiffstats
path: root/bin/sh/jobs.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-08-24 07:19:01 +0000
committertjr <tjr@FreeBSD.org>2002-08-24 07:19:01 +0000
commit7ffc3ae91a4ac92b21d6499f39fb1c45d59bcb6e (patch)
tree255eddb333eaeffe139d54ed4a22f6d13d864ce2 /bin/sh/jobs.c
parent3f7bd9e0a1c7d926b87b428aceb5916e8a0c6d4c (diff)
downloadFreeBSD-src-7ffc3ae91a4ac92b21d6499f39fb1c45d59bcb6e.zip
FreeBSD-src-7ffc3ae91a4ac92b21d6499f39fb1c45d59bcb6e.tar.gz
Don't show the process ID of background jobs that have terminated,
for consistency with ksh.
Diffstat (limited to 'bin/sh/jobs.c')
-rw-r--r--bin/sh/jobs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/jobs.c b/bin/sh/jobs.c
index ebf5ed8..a4a8bdf 100644
--- a/bin/sh/jobs.c
+++ b/bin/sh/jobs.c
@@ -978,7 +978,7 @@ dowait(int block, struct job *job)
out1str(" (core dumped)");
out1c('\n');
} else
- showjob(thisjob, pid, 0, 1);
+ showjob(thisjob, pid, 0, 0);
}
} else {
TRACE(("Not printing status, rootshell=%d, job=0x%x\n", rootshell, job));
OpenPOWER on IntegriCloud