NetBSD Problem Report #19558

Received: (qmail 21469 invoked by uid 605); 25 Dec 2002 07:38:23 -0000
Message-Id: <20021225073820.2602C77A2@mail.asahi-net.or.jp>
Date: Wed, 25 Dec 2002 16:38:19 +0900
From: Toru TAKAMIZU <ttaka@earth.email.ne.jp>
Sender: gnats-bugs-owner@netbsd.org
Reply-To: ttaka@earth.email.ne.jp
To: gnats-bugs@gnats.netbsd.org
Subject: syslog's "mark" facility
X-Send-Pr-Version: 3.95

>Number:         19558
>Category:       bin
>Synopsis:       syslogd(8) should treat "mark.info" entry in syslog.conf(5) properly
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 25 07:39:01 +0000 2002
>Closed-Date:    Thu Oct 28 21:55:50 +0000 2004
>Last-Modified:  Thu Oct 28 21:55:50 +0000 2004
>Originator:     Toru TAKAMIZU
>Release:        NetBSD 1.6_STABLE
>Organization:
>Environment:
System: NetBSD localhost 1.6_STABLE NetBSD 1.6_STABLE (MIWA) #20: Mon Dec 16 16:01:23 JST 2002 toru@localhost:/usr/src/sys/arch/i386/compile/MIWA i386
Architecture: i386
Machine: i386

>Description:
"mark.info" entry in /etc/syslog.conf that worked previously stopped working
at some point.

>How-To-Repeat:

>Fix:
cvs rdiff -r1.67 -r1.68 src/usr.sbin/syslogd/syslogd.c
OR the following patch.
Index: syslogd.c
===================================================================
RCS file: /cvsroot/src/usr.sbin/syslogd/syslogd.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -r1.67 -r1.68
--- syslogd.c	10 Oct 2004 09:43:02 -0000	1.67
+++ syslogd.c	28 Oct 2004 20:04:24 -0000	1.68
@@ -377,7 +377,6 @@
 	(void)signal(SIGQUIT, Debug ? die : SIG_IGN);
 	(void)signal(SIGCHLD, reapchild);
 	(void)signal(SIGALRM, domark);
-	(void)alarm(TIMERINTVL);

 #ifndef SUN_LEN
 #define SUN_LEN(unp) (strlen((unp)->sun_path) + 2)
@@ -478,6 +477,9 @@
 		pidfile(NULL);
 	}

+	/* set timer for mark facility after the fork of daemon() */
+	(void)alarm(TIMERINTVL);
+
 	for (;;) {
 		int rv;

>Release-Note:
>Audit-Trail:

From: Toru TAKAMIZU <ttaka@earth.email.ne.jp>
To: gnats-bugs@gnats.netbsd.org
Cc:  
Subject: Re: bin/19558
Date: Mon, 13 Jan 2003 14:02:45 +0900

 This bug seems to be introduced by the changes between rev 1.46 and 1.47
 of syslogd.c. I tried both revisions and "-- MARK --" appeared only in
 the case of 1.46.

From: Toru TAKAMIZU <ttaka@earth.email.ne.jp>
To: gnats-bugs@gnats.netbsd.org
Cc:  
Subject: Re: bin/19558
Date: Tue, 25 Feb 2003 15:42:56 +0900

 "MARK" works when syslogd is started with "-d" (debug mode).
 I don't know the reason, but it seems that without "-d", "domark"
 is not called.

 I did the followings with gdb.

 break domark
 cont

 With "-d" the process breaks, while without "-d" it never breaks.

 Thanks.
 toru

See fix above.  Pull-up for 1.6 & 2.0 has been requested.
State-Changed-From-To: open->closed 
State-Changed-By: heas 
State-Changed-When: Thu Oct 28 21:48:02 UTC 2004 
State-Changed-Why:  
Supplied fix. 
>Unformatted:
 >Quarter:        
 >Keywords:       
 >Date-Required:  

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.