mirror of https://github.com/omar-polo/gmid.git
remove has_siginfo
and wrap siginfo behind #ifdef SIGINFO. avoids some warnings in !BSD.
This commit is contained in:
parent
1ef09e6313
commit
237095fd9a
7
server.c
7
server.c
|
@ -41,8 +41,10 @@ int shutting_down;
|
||||||
|
|
||||||
static struct tls *ctx;
|
static struct tls *ctx;
|
||||||
|
|
||||||
static struct event siginfo, sigusr2;
|
#ifdef SIGINFO
|
||||||
static int has_siginfo;
|
static struct event siginfo;
|
||||||
|
#endif
|
||||||
|
static struct event sigusr2;
|
||||||
|
|
||||||
int connected_clients;
|
int connected_clients;
|
||||||
|
|
||||||
|
@ -1463,7 +1465,6 @@ server_init(struct privsep *ps, struct privsep_proc *p, void *arg)
|
||||||
SPLAY_INIT(&clients);
|
SPLAY_INIT(&clients);
|
||||||
|
|
||||||
#ifdef SIGINFO
|
#ifdef SIGINFO
|
||||||
has_siginfo = 1;
|
|
||||||
signal_set(&siginfo, SIGINFO, &handle_siginfo, NULL);
|
signal_set(&siginfo, SIGINFO, &handle_siginfo, NULL);
|
||||||
signal_add(&siginfo, NULL);
|
signal_add(&siginfo, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue