aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poweroff.c4
-rw-r--r--reboot.c4
2 files changed, 8 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;
}
diff --git a/reboot.c b/reboot.c
index d40e5c2..83141c3 100644
--- a/reboot.c
+++ b/reboot.c
@@ -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;
}