Asri-unix.388
net.unix-wizards
utzoo!decvax!ucbvax!menlo70!sri-unix!dpk@BMD70
Thu Dec 31 21:53:18 1981
Re:  more on /etc/rc and /dev/console
From:      Doug Kingston <DPK@BMD70>
       Here at BRL we run a highly modified version of V6, but we still
do not have process groups.  Even so, the following information is
applicable with suitable modificaton.

       We wanted a way for our arpanet and accounting programs
to write on the console without gaining a controlling tty.  This
was seen as a general need for logging various kinds of information
so we wrote a few lines of code to implement what we call the "console"
device.  Physically it is the same as some other device[s], but when
you open that device it does not become your controlling tty.  Essentially
there is a conopen() which does a normal open and then resets the controlling
tty if appropriate.  This means that in /etc/rc or a program, this device
can be opened with no side effects, just output.  If anyone wants more
info, send me a private letter.
                                       Cheers,
                                               Doug

-----------------------------------------------------------------
gopher://quux.org/ conversion by John Goerzen <[email protected]>
of http://communication.ucsd.edu/A-News/


This Usenet Oldnews Archive
article may be copied and distributed freely, provided:

1. There is no money collected for the text(s) of the articles.

2. The following notice remains appended to each copy:

The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996
Bruce Jones, Henry Spencer, David Wiseman.