From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jul 23 14:40:03 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 C7100106567E for ; Fri, 23 Jul 2010 14:40:03 +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 83DBE8FC28 for ; Fri, 23 Jul 2010 14:40:03 +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 o6NEe3uX057854 for ; Fri, 23 Jul 2010 14:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o6NEe3vk057853; Fri, 23 Jul 2010 14:40:03 GMT (envelope-from gnats) Resent-Date: Fri, 23 Jul 2010 14:40:03 GMT Resent-Message-Id: <201007231440.o6NEe3vk057853@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 B43E9106566B for ; Fri, 23 Jul 2010 14:31:20 +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 6E4418FC30 for ; Fri, 23 Jul 2010 14:31:19 +0000 (UTC) Received: from services.syscare.sk (services [188.40.39.36]) by services.syscare.sk (Postfix) with ESMTP id 2CEC7369B1 for ; Fri, 23 Jul 2010 16:31:19 +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 mkZKE-KCXgRE for ; Fri, 23 Jul 2010 16:31:17 +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 11A85369A6 for ; Fri, 23 Jul 2010 16:31:17 +0200 (CEST) Received: (from root@localhost) by alice.syscare.sk (8.14.4/8.14.4/Submit) id o6NEVFq0094292; Fri, 23 Jul 2010 16:31:15 +0200 (CEST) (envelope-from danger) Message-Id: <201007231431.o6NEVFq0094292@alice.syscare.sk> Date: Fri, 23 Jul 2010 16:31:15 +0200 (CEST) From: Daniel Gerzo To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/148867: [patch] net-p2p/dcd - 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:03 -0000 >Number: 148867 >Category: ports >Synopsis: [patch] net-p2p/dcd - 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:03 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: --- dcd.sh.in.diff begins here --- --- dcd.sh.in.orig 2010-07-23 16:26:44.089552994 +0200 +++ dcd.sh.in 2010-07-23 16:26:58.105356378 +0200 @@ -16,7 +16,7 @@ rcvar=${name}_enable command=%%PREFIX%%/sbin/dcd -sig_stop=-KILL +sig_stop=KILL stop_cmd=stop_cmd load_rc_config $name --- dcd.sh.in.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: