← Commit list

beb860ac7

Denys Vlasenko
Denys Vlasenko
2011-12-05
FAILED Duration: 194s

Subject

init: utmp update of DEAD_PROCESS was misplaced, and could be skipped. Fixing.

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+5 -3
@@ -523,15 +523,17 @@ static struct init_action *mark_terminated(pid_t pid)
struct init_action *a;
if (pid > 0) {
+ update_utmp(pid, DEAD_PROCESS,
+ /*tty_name:*/ NULL,
+ /*username:*/ NULL,
+ /*hostname:*/ NULL
+ );
for (a = init_action_list; a; a = a->next) {
if (a->pid == pid) {
a->pid = 0;
return a;
}
}
- update_utmp(pid, DEAD_PROCESS, /*tty_name:*/ NULL,
- /*username:*/ NULL,
- /*hostname:*/ NULL);
}
return NULL;
}