variable shared with signal handler needs to be "volatile sig_atomic_t".

Obtained from:	KAME
MFC after:	1 week
This commit is contained in:
ume 2003-08-15 17:20:49 +00:00
parent 712812f25b
commit 2b087c738d

View File

@ -72,8 +72,8 @@ static u_char *rcvcmsgbuf;
static size_t rcvcmsgbuflen;
static u_char *sndcmsgbuf = NULL;
static size_t sndcmsgbuflen;
static int do_dump;
static int do_die;
volatile sig_atomic_t do_dump;
volatile sig_atomic_t do_die;
struct msghdr sndmhdr;
struct iovec rcviov[2];
struct iovec sndiov[2];