Date: Fri, 25 Aug 2000 03:39:50 -0700 (PDT) From: John Baldwin <jhb@pike.osd.bsdi.com> To: core-ix@hushmail.com Cc: hackers@FreeBSD.org Subject: Re: Preventing zombies to occure Message-ID: <200008251039.DAA74998@pike.osd.bsdi.com> In-Reply-To: <200008251012.DAA14106@user2.hushmail.com> from "core-ix@hushmail.com" at "Aug 25, 2000 03:13:52 am"
next in thread | previous in thread | raw e-mail | index | archive | help
core-ix@hushmail.com wrote: > Hello, > > I have some ideas to improve fork()-ing and getting rid of zombie processes. > This things mentioned here are proposed of a man that do not know very well > (author means 'the depths' of) BSD kernel source although he have some ex- > pirience with it (mainly in reading it :-). I'll betray some of my own ignorance here, but what about processes where the parent exits before the child? For example, when starting a server, it is customary for the foreground process to fork a background child to be the actual server process and then exit. You might be able to work around that problem and the one you are tackling by adding some smarts to exit(2) so that when a process exits, it checks to see if any of its children are zombies and clears them if so, and for a process to not become a zombie upon exit(2) unless it's parent is still around. -- John Baldwin <jhb@bsdi.com> -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008251039.DAA74998>