From owner-freebsd-current Thu Nov 18 16:51:47 1999 Delivered-To: freebsd-current@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id 8019F1562B for ; Thu, 18 Nov 1999 16:51:39 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.3/8.9.1) id QAA88470; Thu, 18 Nov 1999 16:51:36 -0800 (PST) (envelope-from dillon) Date: Thu, 18 Nov 1999 16:51:36 -0800 (PST) From: Matthew Dillon Message-Id: <199911190051.QAA88470@apollo.backplane.com> To: Luoqi Chen Cc: bde@zeta.org.au, peter@netplex.com.au, current@FreeBSD.ORG Subject: Re: init runs with console as control terminal? References: <199911182050.PAA01532@lor.watermarkgroup.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG : :> /etc/rc's shell is a controlling process with control terminal /etc/console, :> so /dev/console is supposed to be revoked when /etc/rc's shell exits. :> :Control terminal is for job control, and we don't need job control during :/etc/rc's execution, so why don't we change init not to acquire a control :terminal when executing /etc/rc. Then there's no need for the revoke, :syslogd/postfix would be happy, and anything that doesn't daemonize could :also be safely started as a background process. For now, I'll be using :nohup to start rc5des. : :-lq no control terminal == no signals == no ^C'ing hung programs during startup (for example, when you need to boot a machine without a working network and sendmail and other programs stop the boot sequence in its tracks trying to do DNS lookups). -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message