aboutsummaryrefslogtreecommitdiff
path: root/poweroff.c
diff options
context:
space:
mode:
Diffstat (limited to 'poweroff.c')
-rw-r--r--poweroff.c4
1 files changed, 4 insertions, 0 deletions
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;
}