Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jun 2009 17:57:25 +0000 (UTC)
From:      Ulf Lilleengen <lulf@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r193325 - head/sbin/fsck_ffs
Message-ID:  <200906021757.n52HvPa8023319@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lulf
Date: Tue Jun  2 17:57:24 2009
New Revision: 193325
URL: http://svn.freebsd.org/changeset/base/193325

Log:
  - Use volatile for signal variables.
  
  Suggested by:	Jaakko Heinonen <jh -at- saunalahti.fi>

Modified:
  head/sbin/fsck_ffs/fsck.h

Modified: head/sbin/fsck_ffs/fsck.h
==============================================================================
--- head/sbin/fsck_ffs/fsck.h	Tue Jun  2 17:54:45 2009	(r193324)
+++ head/sbin/fsck_ffs/fsck.h	Tue Jun  2 17:57:24 2009	(r193325)
@@ -297,8 +297,8 @@ int	lfmode;			/* lost & found directory 
 ufs2_daddr_t n_blks;		/* number of blocks in use */
 ino_t n_files;			/* number of files in use */
 
-sig_atomic_t	got_siginfo;	/* received a SIGINFO */
-sig_atomic_t	got_sigalarm;	/* received a SIGALRM */
+volatile sig_atomic_t	got_siginfo;	/* received a SIGINFO */
+volatile sig_atomic_t	got_sigalarm;	/* received a SIGALRM */
 
 #define	clearinode(dp) \
 	if (sblock.fs_magic == FS_UFS1_MAGIC) { \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906021757.n52HvPa8023319>