From nobody@FreeBSD.org  Sun Nov 25 19:51:30 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8E0ED16A468
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 25 Nov 2007 19:51:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 7D54B13C45B
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 25 Nov 2007 19:51:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id lAPJpRgj037959
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 25 Nov 2007 19:51:27 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id lAPJpRZ9037958;
	Sun, 25 Nov 2007 19:51:27 GMT
	(envelope-from nobody)
Message-Id: <200711251951.lAPJpRZ9037958@www.freebsd.org>
Date: Sun, 25 Nov 2007 19:51:27 GMT
From: Eirik verby <ltning@anduin.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: newsyslog does not obey -s (nosignal) flag
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         118248
>Category:       bin
>Synopsis:       newsyslog(8) does not obey -s (nosignal) flag
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gavin
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 25 20:00:02 UTC 2007
>Closed-Date:    
>Last-Modified:  Fri Jul 18 16:10:09 UTC 2008
>Originator:     Eirik verby
>Release:        6.2
>Organization:
N/A
>Environment:
FreeBSD xxx.xxxxx.xx 6.2-RELEASE-p5 FreeBSD 6.2-RELEASE-p5 #0: Thu Jun  7 23:54:27 CEST 2007     root@xxx.xxxxx.xx:/usr/obj/usr/src/sys/SMP  i386


>Description:
The newsyslog program has an option -s to specify that processes should
not be signaled when logs are rotated. This is particularly useful with
the -R option. However, newsyslog attempts to signal the PID specified
in newsyslog.conf no matter if -s is specified or not.
>How-To-Repeat:
newsyslog -sR "Testing" <path-to-log-file>
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: gavin 
State-Changed-When: Fri Jul 18 13:05:43 UTC 2008 
State-Changed-Why:  
To submitter: are you sure the signal is actually being sent to the 
process?  From looking at the code, I cannot see a way that the  
signal could be sent if -s is specified, although if run with verbose 
logging newsyslog will say that it is sending signals even though it 
doesn't actually go through with it. 


Responsible-Changed-From-To: freebsd-bugs->gavin 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Fri Jul 18 13:05:43 UTC 2008 
Responsible-Changed-Why:  
Track 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118248 
State-Changed-From-To: feedback->open 
State-Changed-By: gavin 
State-Changed-When: Fri Jul 18 16:08:36 UTC 2008 
State-Changed-Why:  
Feedback received, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118248 

From: Gavin Atkinson <gavin@FreeBSD.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/118248: newsyslog(8) does not obey -s (nosignal) flag
Date: Fri, 18 Jul 2008 17:08:24 +0100

 -------- Forwarded Message --------
 From: Eirik =D8verby <ltning@anduin.net>
 To: gavin@FreeBSD.org <gavin@FreeBSD.org>
 Date: Fri, 18 Jul 2008 15:32:42 +0200
 
 I haven't actually verified that as such. The main gripe I had at the =20
 time wasn't the signalling as such but that it was complaining when =20
 the process wasn't running. Skipping the signalling doesn't help much =20
 if it still complains and returns with an error code - though I guess =20
 it's subject to some debate how exactly it *should* behave with the -f =20
 flag.
 
 Thanks for giving this issue attention at all :)
 
 /Eirik
>Unformatted:
