ports/148868: [patch] mail/spampd - set the correct signal for sig_stop
Daniel Gerzo
danger at FreeBSD.org
Fri Jul 23 14:40:05 UTC 2010
>Number: 148868
>Category: ports
>Synopsis: [patch] mail/spampd - set the correct signal for sig_stop
>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. "--KILL") so it silently sends a wrong signal.
>How-To-Repeat:
>Fix:
--- spampd.in.diff begins here ---
--- spampd.in.orig 2010-07-23 16:32:10.263474285 +0200
+++ spampd.in 2010-07-23 16:32:18.958092056 +0200
@@ -25,7 +25,7 @@
command="%%PREFIX%%/sbin/$name"
command_args="--pid=${spampd_pidfile}"
pidfile="${spampd_pidfile}"
-sig_stop="-KILL"
+sig_stop="KILL"
stop_cmd="stop_cmd"
status_cmd="status_cmd"
--- spampd.in.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list