🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #6734

Opening a ttyport when getty is running

#6734
From: Sean Sheridan Coleman X5672
Date: Tue, 29 Jan 1991 03:06
21 lines
1453 bytes
I want to first thank Guy Harris for all of his help he has given me
concerning these tty devices.  I need just a little bit more info (I hope)
to figure all of this out.

The manual states that open will block when opening a device that is a
communication device with no carrier. I confirmed that this works. It also
states that when O_NDELAY is set, the open will not block. 

I also confirmed this. QUESTION: Is the open supposed to succeed?  My open
did with no carrier and O_NDELAY.

Now for the confusion. With login (ie getty engaged) turned on in
/etc/ttytab, the open will block with O_NDELAY set. Reading through the
man pages for the zs devices, I got the idea it is supposed to, but I want
some confirmation because the man pages are not clear about this point. If
it is supposed to hang, has getty done something to make this happen?

Thanks

Sean Coleman
coleman@bldrdoc.gov
Technical Details
Message-ID: <1486@brchh104.bnr.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request
From: coleman@cam.nist.gov (Sean Sheridan Coleman X5672)
Newsgroups: comp.sys.sun
Subject: Opening a ttyport when getty is running
Keywords: Miscellaneous
Message-ID: <1486@brchh104.bnr.ca>
Date: 29 Jan 91 03:06:42 GMT
Sender: news@brchh104.bnr.ca
Organization: Sun-Spots
Lines: 21
Approved: Sun-Spots@rice.edu
X-Sun-Spots-Digest: Volume 10, Issue 30, message 15
X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu