From owner-freebsd-current@FreeBSD.ORG Sun Feb 22 04:55:04 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2395C16A4CE; Sun, 22 Feb 2004 04:55:04 -0800 (PST) Received: from mail.bat.ru (dzokonda.xs4all.nl [194.109.164.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59EFD43D2D; Sun, 22 Feb 2004 04:55:03 -0800 (PST) (envelope-from timur@mail.bat.ru) Received: from [192.168.0.4] (account timur@mail.bat.ru) by mail.bat.ru (CommuniGate Pro WebUser 4.1.8) with HTTP id 157886; Sun, 22 Feb 2004 13:55:08 +0100 From: "Timur I. Bakeyev" To: freebsd-current@freebsd.org X-Mailer: CommuniGate Pro WebUser Interface v.4.1.8 Date: Sun, 22 Feb 2004 13:55:08 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="KOI8-R"; format="flowed" Content-Transfer-Encoding: 8bit cc: freebsd-ports@freebsd.org Subject: Excessive exit's in rc.subr X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Feb 2004 12:55:04 -0000 Hi all! While trying to write my own rc.d script for samba I faced with the problem, that some of the functions in rc.subr, namely, run_rc_command(), terminate their flow with the 'exit 1' rather than with 'return 1'. In 95% of the cases, then run_rc_command() is the last command in the startup script, it doesn't matter. But for few others, like abi, sendmail and, ahem, my own script, that makes them terminate earlier, than it is supposed... It'll be nice to fix this nastiness, I think... Or, do I miss something? Timur.