Adding restartsig and emptyview patches

This commit is contained in:
bakkeby
2019-10-02 23:22:04 +02:00
parent 37b1b54ab9
commit 0a23ed6efd
8 changed files with 86 additions and 0 deletions

View File

@@ -54,6 +54,10 @@
#include "push.c"
#endif
#if RESTARTSIG_PATCH
#include "restartsig.c"
#endif
#if ROTATESTACK_PATCH
#include "rotatestack.c"
#endif

View File

@@ -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
View 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
View File

@@ -0,0 +1,2 @@
static void sighup(int unused);
static void sigterm(int unused);