Bug 28435

Summary: [patch] allow newsyslog to signal process groups
Product: Base System Reporter: Gregory Bond <gnb>
Component: binAssignee: Garance A Drosehn <gad>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Gregory Bond 2001-06-27 04:20:01 UTC
Newsyslog allows signalling of a single process when log files are rotated.
But some applications have several processes that need to be signalled.

Fix: The attached patch (against 4-Stable) allows the use of a negative PID 
in the pidfile to send the signal to a process group instead of a single
process.  See the kill(2) man page.

How-To-Repeat: 
Examine the source/man page.
Comment 1 Garance A Drosehn freebsd_committer freebsd_triage 2003-03-05 00:16:15 UTC
Responsible Changed
From-To: freebsd-bugs->gad

I will add a change to newsyslog to add this ability, although I 
will connect it to some config-entry setting, instead of just assuming 
a negative value means a process-group should be notified.
Comment 2 Garance A Drosehn freebsd_committer freebsd_triage 2003-03-08 20:39:47 UTC
   I have now added the 'U' flag for newsyslog entries which
need to notify a process-group.  This change is only avaiable
in -current for now, but I'll MFC it into stable after I write
the man page update, and after the freeze is off of stable.

-- 
Garance Alistair Drosehn     =               gad@FreeBSD.org
Comment 3 Garance A Drosehn freebsd_committer freebsd_triage 2003-05-05 05:18:30 UTC
State Changed
From-To: open->closed

The changes for the 'U' flag have now been committed to the 
freebsd-stable branch.