aboutsummaryrefslogtreecommitdiff
path: root/gmid.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-03-20 09:23:53 +0000
committerOmar Polo <op@omarpolo.com>2021-03-20 09:23:53 +0000
commitd632468df510578999cf3e34f422728e879d7286 (patch)
tree704f4dfb23ca4d57fd9e4727d451608f060226fd /gmid.c
parent7e3aaf3752a9df96bb830877c62fbd02988a769a (diff)
fix correct shutdown after SIG{INT,TERM}
Diffstat (limited to 'gmid.c')
-rw-r--r--gmid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gmid.c b/gmid.c
index cedcc93..2d0022c 100644
--- a/gmid.c
+++ b/gmid.c
@@ -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,