summaryrefslogtreecommitdiffstats
path: root/usr.bin/stat
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2010-12-05 21:53:29 +0000
committerjilles <jilles@FreeBSD.org>2010-12-05 21:53:29 +0000
commit506e81b852532c0c9a46364645396675b03e2c38 (patch)
treec4d86aedd593338ac93bc05d45072dd2633a630f /usr.bin/stat
parentd790f3335ba7fdfe00e3759b7750c1a775de5c47 (diff)
downloadFreeBSD-src-506e81b852532c0c9a46364645396675b03e2c38.zip
FreeBSD-src-506e81b852532c0c9a46364645396675b03e2c38.tar.gz
sh: Avoid marking a job as done before it is fully created.
In r208489, I added code to reap zombies when forking new processes, to limit the amount of zombies. However, this can lead to marking a job as done or stopped if it consists of multiple processes and the first process ends very quickly. Fix this by only checking for zombies before forking the first process of a job and not marking any jobs without processes as done or stopped.
Diffstat (limited to 'usr.bin/stat')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud