From 3e6b951d2a5ad5c4b2c9785e42e505dfa08a427f Mon Sep 17 00:00:00 2001 From: itojun Date: Sat, 6 Mar 2004 20:29:25 +0000 Subject: [PATCH] use "volatile sig_atomic_t" for gothup; Havard Eidnes --- usr.sbin/syslogd/syslogd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 37018983978e..8f3f21bc163b 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -1,4 +1,4 @@ -/* $NetBSD: syslogd.c,v 1.64 2004/03/06 14:41:59 itojun Exp $ */ +/* $NetBSD: syslogd.c,v 1.65 2004/03/06 20:29:25 itojun Exp $ */ /* * Copyright (c) 1983, 1988, 1993, 1994 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1988, 1993, 1994\n\ #if 0 static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94"; #else -__RCSID("$NetBSD: syslogd.c,v 1.64 2004/03/06 14:41:59 itojun Exp $"); +__RCSID("$NetBSD: syslogd.c,v 1.65 2004/03/06 20:29:25 itojun Exp $"); #endif #endif /* not lint */ @@ -198,7 +198,7 @@ int UseNameService = 1; /* make domain name queries */ int NumForwards = 0; /* number of forwarding actions in conf file */ char **LogPaths; /* array of pathnames to read messages from */ int NoRepeat = 0; /* disable "repeated"; log always */ -int gothup = 0; /* got SIGHUP */ +volatile sig_atomic_t gothup = 0; /* got SIGHUP */ void cfline(char *, struct filed *); char *cvthname(struct sockaddr_storage *);