From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jul 23 14:40:05 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D831E1065679 for ; Fri, 23 Jul 2010 14:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9377B8FC14 for ; Fri, 23 Jul 2010 14:40:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o6NEe5Zi057949 for ; Fri, 23 Jul 2010 14:40:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o6NEe5iM057941; Fri, 23 Jul 2010 14:40:05 GMT (envelope-from gnats) Resent-Date: Fri, 23 Jul 2010 14:40:05 GMT Resent-Message-Id: <201007231440.o6NEe5iM057941@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Daniel Gerzo Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8EA3106566B for ; Fri, 23 Jul 2010 14:34:22 +0000 (UTC) (envelope-from danger@alice.syscare.sk) Received: from services.syscare.sk (services.syscare.sk [188.40.39.36]) by mx1.freebsd.org (Postfix) with ESMTP id 7280C8FC0A for ; Fri, 23 Jul 2010 14:34:22 +0000 (UTC) Received: from services.syscare.sk (services [188.40.39.36]) by services.syscare.sk (Postfix) with ESMTP id 84E8E36B31 for ; Fri, 23 Jul 2010 16:34:21 +0200 (CEST) Received: from services.syscare.sk ([188.40.39.36]) by services.syscare.sk (services.rulez.sk [188.40.39.36]) (amavisd-new, port 10024) with ESMTP id Z9B6HZDtmrYT for ; Fri, 23 Jul 2010 16:34:18 +0200 (CEST) Received: from alice.syscare.sk (services [188.40.39.36]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by services.syscare.sk (Postfix) with ESMTPS id C4C2F36B15 for ; Fri, 23 Jul 2010 16:34:18 +0200 (CEST) Received: (from root@localhost) by alice.syscare.sk (8.14.4/8.14.4/Submit) id o6NEYI6N003515; Fri, 23 Jul 2010 16:34:18 +0200 (CEST) (envelope-from danger) Message-Id: <201007231434.o6NEYI6N003515@alice.syscare.sk> Date: Fri, 23 Jul 2010 16:34:18 +0200 (CEST) From: Daniel Gerzo To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/148868: [patch] mail/spampd - set the correct signal for sig_stop X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Gerzo List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jul 2010 14:40:05 -0000 >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: