aboutsummaryrefslogtreecommitdiff
path: root/reboot.c
blob: 83141c374f88103ff7b0e62b8ed16c7fe19ce456 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <sys/types.h>
#include <stdio.h>
#include <errno.h>
#include <signal.h>

int
main(void)
{
#ifdef SANE
	if (kill(1, SIGINT) == -1) {
		perror("kill");
		return errno;
	}
#else
        kill(1, SIGINT);
#endif

	return 0;
}