diff options
author | eadler <eadler@FreeBSD.org> | 2013-03-04 02:21:08 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2013-03-04 02:21:08 +0000 |
commit | 707e0c270aebac8ef4c74bcb4c2926332c7a232f (patch) | |
tree | a4c3be31b0079a52a8c2e28de101af37a960a554 /sbin/devd/devd.cc | |
parent | 2a993211653ff0a4aa7c38661ce0fc04a0a415e8 (diff) | |
download | FreeBSD-src-707e0c270aebac8ef4c74bcb4c2926332c7a232f.zip FreeBSD-src-707e0c270aebac8ef4c74bcb4c2926332c7a232f.tar.gz |
devd: Use volatile sig_atomic_t for the flag set by a signal handler.
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Approved by: cperciva (mentor)
Diffstat (limited to 'sbin/devd/devd.cc')
-rw-r--r-- | sbin/devd/devd.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/devd/devd.cc b/sbin/devd/devd.cc index 0151975..08fcb73 100644 --- a/sbin/devd/devd.cc +++ b/sbin/devd/devd.cc @@ -116,7 +116,7 @@ static struct pidfh *pfh; int Dflag; int dflag; int nflag; -int romeo_must_die = 0; +static volatile sig_atomic_t romeo_must_die = 0; static const char *configfile = CF; @@ -1076,7 +1076,7 @@ set_variable(const char *var, const char *val) static void gensighand(int) { - romeo_must_die++; + romeo_must_die = 1; _exit(0); } |