mirror of
https://github.com/troglobit/finit.git
synced 2026-11-02 13:20:32 +00:00
Do not fork external process, use sync(2) instead
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
34bdbdb3b1
commit
38142baa93
1 file changed
+1
-1
@@ -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 /");
|
||||
|
||||
Reference in new issue
Block a user