aboutsummaryrefslogtreecommitdiff
path: root/poweroff.c
blob: 4f5145699db9f09ca61c1dc0c0a00e193624002b (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, SIGUSR1) == -1) {
		perror("kill");
		return errno;
	}
#else
        kill(1, SIGUSR1);
#endif

	return 0;
}