aboutsummaryrefslogtreecommitdiff
path: root/reboot.c
blob: d40e5c2c7f7591b609670d81cfd0251027794fb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
}