diff options
Diffstat (limited to 'reboot.c')
-rw-r--r-- | reboot.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/reboot.c b/reboot.c new file mode 100644 index 0000000..d40e5c2 --- /dev/null +++ b/reboot.c @@ -0,0 +1,15 @@ +#include <sys/types.h> +#include <stdio.h> +#include <errno.h> +#include <signal.h> + +int +main(void) +{ + if (kill(1, SIGINT) == -1) { + perror("kill"); + return errno; + } + + return 0; +} |