]> Zhao Yanbai Git Server - minix.git/commitdiff
1 sync in shutdown procedure.
authorBen Gras <ben@minix3.org>
Wed, 5 Oct 2005 15:07:08 +0000 (15:07 +0000)
committerBen Gras <ben@minix3.org>
Wed, 5 Oct 2005 15:07:08 +0000 (15:07 +0000)
commands/reboot/halt.c

index 2459bc97c182e042657c611d7556ded82a56ccfc..13a43708f098f9640ef2bd85287c0e061cc096f3 100755 (executable)
@@ -133,6 +133,8 @@ char **argv;
     sleep(2);
   }
 
+  sync();
+
   reboot(flag, monitor_code, strlen(monitor_code));
   fprintf(stderr, "%s: reboot(): %s\n", strerror(errno));
   return 1;