From: Ben Gras Date: Wed, 5 Oct 2005 15:07:08 +0000 (+0000) Subject: 1 sync in shutdown procedure. X-Git-Tag: v3.1.2a~662 X-Git-Url: http://zhaoyanbai.com/repos/FAQ?a=commitdiff_plain;h=a369d9c8286b28499404d6431e8ff957465462d6;p=minix.git 1 sync in shutdown procedure. --- diff --git a/commands/reboot/halt.c b/commands/reboot/halt.c index 2459bc97c..13a43708f 100755 --- a/commands/reboot/halt.c +++ b/commands/reboot/halt.c @@ -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;