reboot: Use do_sleep() instead of sleep() to prevent wakeups due to SIGTERM

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2017-01-13 07:56:48 +01:00
parent 50668161ad
commit adc340e4c3
+1 -2
View File
@@ -207,8 +207,7 @@ int main(int argc, char *argv[])
if (c)
err(1, "Failed signalling init to %s", msg);
else
sleep(2);
do_sleep(2);
return 0;
}