From: Ben Gras Date: Mon, 3 Apr 2006 14:50:07 +0000 (+0000) Subject: write_log() after killing everyone. This improves the quality of X-Git-Tag: v3.1.2a~87 X-Git-Url: http://zhaoyanbai.com/repos/man.named-journalprint.html?a=commitdiff_plain;h=aaf30491f33c08dd008d62e80e55c789726221fc;p=minix.git write_log() after killing everyone. This improves the quality of the reboot-check, as otherwise logout records can get written after our reboot record. --- diff --git a/commands/reboot/halt.c b/commands/reboot/halt.c index 456b5234c..962e83b66 100755 --- a/commands/reboot/halt.c +++ b/commands/reboot/halt.c @@ -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));