From owner-freebsd-rc@FreeBSD.ORG Fri Jul 23 08:29:25 2010 Return-Path: Delivered-To: rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC9871065673 for ; Fri, 23 Jul 2010 08:29:25 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mail.bsdforen.de (bsdforen.de [212.204.60.79]) by mx1.freebsd.org (Postfix) with ESMTP id 7871B8FC20 for ; Fri, 23 Jul 2010 08:29:25 +0000 (UTC) Received: from mobileKamikaze.norad (vpn-cl-164-95.rz.uni-karlsruhe.de [141.3.164.95]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bsdforen.de (Postfix) with ESMTP id 57F718A22B7; Fri, 23 Jul 2010 10:02:36 +0200 (CEST) Message-ID: <4C494C9B.1020109@bsdforen.de> Date: Fri, 23 Jul 2010 10:02:35 +0200 From: Dominic Fandrey User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-GB; rv:1.9.1.11) Gecko/20100722 Thunderbird/3.0.6 MIME-Version: 1.0 To: Ed Schouten References: <20100717105658.GV1742@hoeg.nl> In-Reply-To: <20100717105658.GV1742@hoeg.nl> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org, rc@FreeBSD.org Subject: Re: General note on rc scripts and daemonizing X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jul 2010 08:29:25 -0000 On 17/07/2010 12:56, Ed Schouten wrote: > ... > > This has various implications. The most important one I can think of, is > that the daemon can still do open("/dev/tty", ...) if it wants and spam > your TTY, even if the daemon is running as user `nobody'. This also > means that if you run the rc script from within a pseudo-terminal, it > can never actually destroy the pseudo-terminal for you, because maybe > the daemon is interested in using it. What is not clear to me, in which way is that a problem? Regards -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?