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.mal...@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);
 }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to