[PATCH] set DEAD_PROCESS for died proccess with pid in utmp table
plautrba at redhat.com
Tue Jun 15 15:39:23 BST 2010
Attached patch tries to fix #183729.
If we assume that *getty takes care about setting INIT_PROCESS/LOGIN_PROCESS itself, we need
just set DEAD_PROCESS for dead processes with pid in utmp table and log it into wtmp.
Init goes through the utmp table, tries to find entry with dead process pid and sets it
to DEAD_PROCESS. There is no need to create/set up "utmp" stanza.
Test covers utmp table with 2 entries and with 2 situation - process is in LOGIN_PROCESS or USER_PROCESS.
Petr Lautrbach, Red Hat, Inc.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the upstart-devel