From 4300ce841cf0fe3379b538a1a32316f55b148aae Mon Sep 17 00:00:00 2001 From: Nick Shipp Date: Sun, 30 Apr 2017 21:58:21 -0400 Subject: Follow the insanity in poweroff and reboot --- poweroff.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'poweroff.c') diff --git a/poweroff.c b/poweroff.c index 5379c4f..4f51456 100644 --- a/poweroff.c +++ b/poweroff.c @@ -6,10 +6,14 @@ int main(void) { +#ifdef SANE if (kill(1, SIGUSR1) == -1) { perror("kill"); return errno; } +#else + kill(1, SIGUSR1); +#endif return 0; } -- cgit v1.2.3-54-g00ecf