projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dbbac5
)
init: clear utmp entries for dead processes, if they (entries) exist
author
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 6 Apr 2010 16:49:28 +0000
(18:49 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 6 Apr 2010 16:49:28 +0000
(18:49 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
init/init.c
patch
|
blob
|
history
diff --git
a/init/init.c
b/init/init.c
index b9c8924073c88241123d456a2e87935888ac8a4d..481f55167610b8b648b906b0df1ff59c904102b6 100644
(file)
--- a/
init/init.c
+++ b/
init/init.c
@@
-15,6
+15,9
@@
#include <sys/reboot.h>
#include <sys/resource.h>
#include <linux/vt.h>
+#if ENABLE_FEATURE_UTMP
+# include <utmp.h> /* DEAD_PROCESS */
+#endif
/* Was a CONFIG_xxx option. A lot of people were building
@@
-415,6
+418,7
@@
static struct init_action *mark_terminated(pid_t pid)
return a;
}
}
+ update_utmp(pid, DEAD_PROCESS, /*tty_name:*/ NULL, /*username:*/ NULL, /*hostname:*/ NULL);
}
return NULL;
}