[PATCH] set DEAD_PROCESS for died proccess with pid in utmp table

Petr Lautrbach 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...
Name: upstart-utmp-set-DEAD_PROCESS.patch
Url: https://lists.ubuntu.com/archives/upstart-devel/attachments/20100615/0ae30f88/attachment.txt 

More information about the upstart-devel mailing list