← Commit list

87fb72032

Denys Vlasenko
Denys Vlasenko
2010-04-06
FAILED Duration: 29s

Subject

init: clear utmp entries for dead processes, if they (entries) exist

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

init/init.c+4 -0
@@ -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;
}