Too many inits

dyer at wivax.UUCP dyer at wivax.UUCP
Fri Jun 3 13:32:34 AEST 1983


Re: /etc/init appears on dialup lines, /etc/getty appears on hard-wired lines.

The reason for this is that init performs the open of the terminal device,
followed by dup(0), dup(0), generating file handle 0, 1, and 2 aka STDIN,
STDOUT and STDERR.)  An open on a dialup line blocks until carrier is
detected, whereas an open on a hard-wired line succeeds immediately.

In both cases, after the open and dup's, init executes /etc/getty.



More information about the Comp.unix.wizards mailing list