Do not fork external process, use sync(2) instead

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2016-10-02 14:06:06 +02:00
parent 34bdbdb3b1
commit 38142baa93
+1 -1
View File
@@ -159,7 +159,7 @@ void do_shutdown(shutop_t op)
unmount_regular();
/* We sit on / so we must remount it ro, try all the things! */
run("sync");
sync();
run("/bin/mount -n -o remount,ro -t dummytype dummydev /");
run("/bin/mount -n -o remount,ro dummydev /");
run("/bin/mount -n -o remount,ro /");