simple-init

A set of init binaries for linux
git clone git://depsterr.com/git/simple-init
Log | Files | Refs | README | LICENSE

commit 686d4da264f895cfc1ab13b967d8262a67dd7c47
parent 748a0eca91184fa5ce2143a50342fdae20aaa174
Author: depsterr <depsterr@protonmail.com>
Date:   Sun, 31 May 2020 19:07:47 +0200

changed to lazy unmount

Diffstat:
Minitscripts/shutdown.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/initscripts/shutdown.c b/initscripts/shutdown.c @@ -28,11 +28,11 @@ int main(int argc, char* argv[]) { log_message("Unmounting all filesystems"); char* swapcmd[] = { "swapoff", "-a", 0}; - char* umountcmd[] = { "umount", "-ra", 0}; + char* umountcmd[] = { "umount", "-lra", 0}; spawn_process(swapcmd); spawn_process(umountcmd); /* wait for children without caring about failing */ - while(wait(0) > 0); + while(wait(0)); log_message("Requesting shutdown from kernel"); if(argv[1][0] == 'p') {