Date: Tue, 17 Apr 2001 00:07:59 -0700 (PDT) From: matt@braithwaite.net To: freebsd-gnats-submit@FreeBSD.org Subject: misc/26636: If /etc/ttys goes empty, init(8) never rereads it Message-ID: <200104170707.f3H77xi60302@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 26636 >Category: misc >Synopsis: If /etc/ttys goes empty, init(8) never rereads it >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 17 00:10:02 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Matthew Braithwaite >Release: 4.2-RELEASE >Organization: >Environment: >Description: If you empty out /etc/ttys, HUP init, and then put something back in /etc/ttys, init will never spawn anything ever again. >How-To-Repeat: >Fix: This patch was not made with an understanding of init, so it may well introduce problems. It merely points the direction to the solution of this problem. *** init.c~ Wed Aug 23 00:08:22 2000 --- init.c Mon Apr 16 23:53:36 2001 *************** *** 1341,1349 **** register int devlen; char *old_getty, *old_window, *old_type; - if (! sessions) - return (state_func_t) multi_user; - /* * mark all sessions for death, (!SE_PRESENT) * as we find or create new ones they'll be marked as keepers, --- 1341,1346 ---- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104170707.f3H77xi60302>