diff options
author | Omar Polo <op@omarpolo.com> | 2021-03-20 09:23:53 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-03-20 09:23:53 +0000 |
commit | d632468df510578999cf3e34f422728e879d7286 (patch) | |
tree | 704f4dfb23ca4d57fd9e4727d451608f060226fd /gmid.c | |
parent | 7e3aaf3752a9df96bb830877c62fbd02988a769a (diff) |
fix correct shutdown after SIG{INT,TERM}
Diffstat (limited to 'gmid.c')
-rw-r--r-- | gmid.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -389,6 +389,7 @@ serve(int argc, char **argv, struct imsgbuf *ibuf) int main(int argc, char **argv) { + struct imsgbuf exibuf; int ch, conftest = 0, configless = 0; int old_ipv6, old_port; @@ -495,7 +496,6 @@ main(int argc, char **argv) /* wait a sighup and reload the daemon */ for (;;) { - struct imsgbuf exibuf; int p[2]; if (socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, |