From a369d9c8286b28499404d6431e8ff957465462d6 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Wed, 5 Oct 2005 15:07:08 +0000 Subject: [PATCH] 1 sync in shutdown procedure. --- commands/reboot/halt.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.44.0