write_log() after killing everyone. This improves the quality of

the reboot-check, as otherwise logout records can get written after
our reboot record.
This commit is contained in:
Ben Gras 2006-04-03 14:50:07 +00:00
parent 969989b7e6
commit aaf30491f3

View File

@ -95,8 +95,6 @@ char **argv;
fast = 1;
}
write_log();
signal(SIGHUP, SIG_IGN);
signal(SIGTERM, SIG_IGN);
@ -125,6 +123,8 @@ char **argv;
kill(-1, SIGTERM);
sleep(1);
write_log();
sync();
reboot(flag, monitor_code, strlen(monitor_code));