svn commit: r247754 - head/sbin/devd

Eitan Adler eadler at FreeBSD.org
Mon Mar 4 02:21:09 UTC 2013


Author: eadler
Date: Mon Mar  4 02:21:08 2013
New Revision: 247754
URL: http://svnweb.freebsd.org/changeset/base/247754

Log:
  devd: Use volatile sig_atomic_t for the flag set by a signal handler.
  
  Submitted by:	Christoph Mallon <christoph.mallon at gmx.de>
  Approved by:	cperciva (mentor)

Modified:
  head/sbin/devd/devd.cc

Modified: head/sbin/devd/devd.cc
==============================================================================
--- head/sbin/devd/devd.cc	Mon Mar  4 02:21:06 2013	(r247753)
+++ head/sbin/devd/devd.cc	Mon Mar  4 02:21:08 2013	(r247754)
@@ -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
 static void
 gensighand(int)
 {
-	romeo_must_die++;
+	romeo_must_die = 1;
 	_exit(0);
 }
 


More information about the svn-src-all mailing list