init

root at uokmet.UUCP root at uokmet.UUCP
Fri Jan 10 02:09:00 AEST 1986


>There is apparently a very interesting (and annoying) bug in 2.9's init, or
>so we have encountered.  If ^C is hit in between when init forks and when
>getty is exec'd, SIGINT is sent to init.  Sometimes this even happened to
>running login's.
>
>This bug should be able to be reproduced by repeatedly hitting ^C at any
>currently running getty or login.  The result of this is that init's child
>thinks it's going into special session.  It logs everyone out and is a
>rather nasty problem.  (A question: when this happens, it sometimes happens
>that not everyone is logged out.  Why would kill(-1, SIGKILL) not always
>work?)
>
>Our second solution was to signal(SIGINT, SIG_DFL), rather than setpgrp().

You should also add:
	signal(SIGQUIT, SIG_DFL);

Another way to produce the problems is to have root do a "kill -2" on *ANY*
init processes.

	Kevin W. Thomas
	Univ. of Oklahoma
	School of Meteorology
	Norman, OK

UUCP:	...!ihnp4!okstate!uokvax!uokmet!kwthomas



More information about the Comp.bugs.2bsd mailing list