]> Zhao Yanbai Git Server - minix.git/commitdiff
write_log() after killing everyone. This improves the quality of
authorBen Gras <ben@minix3.org>
Mon, 3 Apr 2006 14:50:07 +0000 (14:50 +0000)
committerBen Gras <ben@minix3.org>
Mon, 3 Apr 2006 14:50:07 +0000 (14:50 +0000)
the reboot-check, as otherwise logout records can get written after
our reboot record.

commands/reboot/halt.c

index 456b5234c4e85cfe4da56ae347d501203509c83c..962e83b6610b1d7dc419f3166a18c5d4a3e396a9 100755 (executable)
@@ -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));