summaryrefslogtreecommitdiffhomepage
path: root/patch/restartsig.c
blob: 0bef576aee46d1b6106a7d0fd5554878cc775888 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
static int restart = 0;

void
sighup(int unused)
{
	Arg a = {.i = 1};
	quit(&a);
}

void
sigterm(int unused)
{
	Arg a = {.i = 0};
	quit(&a);
}