diff options
| author | Bear <bear@bengtsson.win> | 2021-12-27 09:29:58 +0000 |
|---|---|---|
| committer | Bear <bear@bengtsson.win> | 2021-12-27 09:29:58 +0000 |
| commit | 69262b01ced79c2d776fab9b889926d1816a1e7a (patch) | |
| tree | f304cd6fa8734e83a7772d07dc9b484781565155 /patch/restartsig.c | |
Added DWM
Diffstat (limited to 'patch/restartsig.c')
| -rw-r--r-- | patch/restartsig.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/patch/restartsig.c b/patch/restartsig.c new file mode 100644 index 0000000..adb61b5 --- /dev/null +++ b/patch/restartsig.c @@ -0,0 +1,16 @@ +static int restart = 0; + +void +sighup(int unused) +{ + Arg a = {.i = 1}; + quit(&a); +} + +void +sigterm(int unused) +{ + Arg a = {.i = 0}; + quit(&a); +} + |
