diff options
author | Nick Shipp <nick@shipp.ninja> | 2017-04-30 21:58:21 -0400 |
---|---|---|
committer | Nick Shipp <nick@shipp.ninja> | 2017-04-30 21:58:21 -0400 |
commit | 4300ce841cf0fe3379b538a1a32316f55b148aae (patch) | |
tree | 7bee9d97b383f6bad509426ea9812015098543ee | |
parent | 7cf367f120d6c6a2e7d918f177d823691d061ca7 (diff) |
Follow the insanity in poweroff and reboot
-rw-r--r-- | poweroff.c | 4 | ||||
-rw-r--r-- | reboot.c | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -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; } @@ -6,10 +6,14 @@ int main(void) { +#ifdef SANE if (kill(1, SIGINT) == -1) { perror("kill"); return errno; } +#else + kill(1, SIGINT); +#endif return 0; } |