From 38142baa9396ec34a00f2aea30c4fc56840a589d Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sun, 2 Oct 2016 14:06:06 +0200 Subject: [PATCH] Do not fork external process, use sync(2) instead Signed-off-by: Joachim Nilsson --- sig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sig.c b/sig.c index a030d581..ca6c3356 100644 --- a/sig.c +++ b/sig.c @@ -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 /");