tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: How are ttys assigned?
@ 2001-05-17 21:37 Willeat, Todd
  0 siblings, 0 replies; only message in thread
From: Willeat, Todd @ 2001-05-17 21:37 UTC (permalink / raw)
  To: tru64-unix-managers

From the answers I got, everyone says its the first available. I'll quote
Dr. Blinn's response because it was the most thorough answer:

"I may be mistaken, but I believe it's all handled in the pseudo-terminal
driver (see the pty reference page).  That is, the application (e.g.,
the telnet daemon) opens a pty (for instance, using the openpty() library
call or for STREAMS based ptys, perhaps opens /dev/ptmx) and depending on
what available device slots there are, gets a pty/tty pair.  I doubt it
is documented anywhere whether the device names are maintained in some
kind of a list or silo or exactly how the next name is chosen, except
in the code that implements the selection."

-----Original Message-----
From: Willeat, Todd [mailto:TWilleat@MHP.SMHS.com]
Sent: Thursday, May 17, 2001 3:05 PM
To: 'tru64-unix-managers@ornl.gov'
Subject: How are ttys assigned?


Hi all,

My manager has asked me a question that I can't find the answer to. When
someone telnets to the box, what determines which tty is assigned?

Thanks and I'll summarize.


          __________________________
         /      Todd A. Willeat     \  
      _ |     UNIX Administrator     | _
     / )|     Mercy Health Plans     |( \
    / / |       (314) 214-2329       | \ \
  _( (_ |   twilleat@mhp.smhs.com    | _) )_
 (((\ \> \/->____<-=-=-=-=->_____<-\/ </ /)))
 (\\\\ \_/ /                      \ \_/ ////)
  \       /                        \       /
   \    _/                          \_    /
   /   /                             \   \
  /___/                               \___\

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-05-17 21:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-17 21:37 SUMMARY: How are ttys assigned? Willeat, Todd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox