ports/148869: [patch] www/lighttpd - - set the correct signal for sig_reload

Daniel Gerzo danger at FreeBSD.org
Fri Jul 23 14:40:06 UTC 2010


>Number:         148869
>Category:       ports
>Synopsis:       [patch] www/lighttpd - - set the correct signal for sig_reload
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 23 14:40:05 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Daniel Gerzo
>Release:        FreeBSD 8.0-STABLE amd64
>Organization:
SysCare s. r. o.
>Environment:
>Description:
in /etc/rc.subr, we have _run_rc_killcmd() function, which does this:
_cmd="kill -$1 $rc_pid".

When we set sig_stop to -KILL, the kill command receives wrong signal
(i.e. "--INT") so it silently sends a wrong signal.
>How-To-Repeat:
>Fix:

--- lighttpd.sh.in.diff begins here ---
--- lighttpd.sh.in.orig	2010-07-23 16:34:31.489657978 +0200
+++ lighttpd.sh.in	2010-07-23 16:34:39.075043817 +0200
@@ -35,7 +35,7 @@
 restart_precmd="checkconfig"
 reload_precmd=reload_precmd
 reload_postcmd=reload_postcmd
-sig_reload="-INT"
+sig_reload="INT"
 check_cmd="checkconfig"
 extra_commands="reload check"
 
--- lighttpd.sh.in.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list