Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site wivax.UUCP
Path: utzoo!decvax!wivax!dyer
From: dyer@wivax.UUCP
Newsgroups: net.unix-wizards
Subject: Re: Too many inits
Message-ID: <18371@wivax.UUCP>
Date: Thu, 2-Jun-83 23:32:34 EDT
Article-I.D.: wivax.18371
Posted: Thu Jun  2 23:32:34 1983
Date-Received: Wed, 8-Jun-83 00:18:36 EDT
References: root44.2179, <21@hou2b.UUCP>
Organization: Wang Institute, Tyngsboro, Massachusetts
Lines: 8

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.