Date: Sun, 5 Dec 2010 21:53:29 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/sh jobs.c Message-ID: <201012052153.oB5LrgHD050437@repoman.freebsd.org>
index | next in thread | raw e-mail
jilles 2010-12-05 21:53:29 UTC
FreeBSD src repository
Modified files:
bin/sh jobs.c
Log:
SVN rev 216208 on 2010-12-05 21:53:29Z by jilles
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.
Revision Changes Path
1.84 +2 -2 src/bin/sh/jobs.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012052153.oB5LrgHD050437>
