Add SIGHUP handler so that zmc reloads instead of dies
This commit is contained in:
parent
9fd2c12765
commit
61fe2a734b
|
@ -228,6 +228,7 @@ int main(int argc, char *argv[]) {
|
||||||
sigset_t block_set;
|
sigset_t block_set;
|
||||||
sigemptyset(&block_set);
|
sigemptyset(&block_set);
|
||||||
|
|
||||||
|
sigaddset(&block_set, SIGHUP);
|
||||||
sigaddset(&block_set, SIGUSR1);
|
sigaddset(&block_set, SIGUSR1);
|
||||||
sigaddset(&block_set, SIGUSR2);
|
sigaddset(&block_set, SIGUSR2);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue