From owner-freebsd-bugs@FreeBSD.ORG Mon Sep 20 09:00:16 2010 Return-Path: Delivered-To: freebsd-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 637951065679 for ; Mon, 20 Sep 2010 09:00:16 +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 2658A8FC19 for ; Mon, 20 Sep 2010 09:00:16 +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 o8K90GBK078711 for ; Mon, 20 Sep 2010 09:00:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o8K90FNk078700; Mon, 20 Sep 2010 09:00:15 GMT (envelope-from gnats) Resent-Date: Mon, 20 Sep 2010 09:00:15 GMT Resent-Message-Id: <201009200900.o8K90FNk078700@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, YIN Xiaofeng <75394094@qq.com> Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E7BE61065670 for ; Mon, 20 Sep 2010 08:53:20 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id D6D488FC14 for ; Mon, 20 Sep 2010 08:53:20 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o8K8rJBR063112 for ; Mon, 20 Sep 2010 08:53:19 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o8K8rJKI063111; Mon, 20 Sep 2010 08:53:19 GMT (envelope-from nobody) Message-Id: <201009200853.o8K8rJKI063111@www.freebsd.org> Date: Mon, 20 Sep 2010 08:53:19 GMT From: YIN Xiaofeng <75394094@qq.com> To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/150752: be not needed to eval $_pidcmd on reboot stage X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Sep 2010 09:00:16 -0000 >Number: 150752 >Category: misc >Synopsis: be not needed to eval $_pidcmd on reboot stage >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Sep 20 09:00:15 UTC 2010 >Closed-Date: >Last-Modified: >Originator: YIN Xiaofeng >Release: 8.1-RELEASE >Organization: >Environment: FreeBSD abc.xyz.com 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: If system boots normally, rc script is not necessary to determine rc_pid, and it can boot even faster. Is it right ? >How-To-Repeat: reboot your system, you can add one line(line: set -x ) into /etc/rc to view, and you can see _find_process (invoked by check_pidfile or check_process) to be executed. >Fix: --- /etc/rc.subr.orig 2010-07-19 10:24:59.000000000 +0800 +++ /etc/rc.subr 2010-09-20 16:44:26.000000000 +0800 @@ -657,7 +657,7 @@ fi fi - eval $_pidcmd # determine the pid if necessary + [ -z "$autoboot" ] && eval $_pidcmd # determine the pid if necessary for _elem in $_keywords; do if [ "$_elem" != "$rc_arg" ]; then >Release-Note: >Audit-Trail: >Unformatted: