Adding restartsig and emptyview patches
This commit is contained in:
@@ -54,6 +54,10 @@
|
||||
#include "push.c"
|
||||
#endif
|
||||
|
||||
#if RESTARTSIG_PATCH
|
||||
#include "restartsig.c"
|
||||
#endif
|
||||
|
||||
#if ROTATESTACK_PATCH
|
||||
#include "rotatestack.c"
|
||||
#endif
|
||||
|
@@ -54,6 +54,10 @@
|
||||
#include "push.h"
|
||||
#endif
|
||||
|
||||
#if RESTARTSIG_PATCH
|
||||
#include "restartsig.h"
|
||||
#endif
|
||||
|
||||
#if ROTATESTACK_PATCH
|
||||
#include "rotatestack.h"
|
||||
#endif
|
||||
|
15
patch/restartsig.c
Normal file
15
patch/restartsig.c
Normal file
@@ -0,0 +1,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);
|
||||
}
|
2
patch/restartsig.h
Normal file
2
patch/restartsig.h
Normal file
@@ -0,0 +1,2 @@
|
||||
static void sighup(int unused);
|
||||
static void sigterm(int unused);
|
Reference in New Issue
Block a user