summaryrefslogtreecommitdiffstats
path: root/sbin/devd/devd.cc
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2013-03-04 02:21:08 +0000
committereadler <eadler@FreeBSD.org>2013-03-04 02:21:08 +0000
commit707e0c270aebac8ef4c74bcb4c2926332c7a232f (patch)
treea4c3be31b0079a52a8c2e28de101af37a960a554 /sbin/devd/devd.cc
parent2a993211653ff0a4aa7c38661ce0fc04a0a415e8 (diff)
downloadFreeBSD-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.cc4
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);
}
OpenPOWER on IntegriCloud