SUMMARY: How are ttys assigned?

From: Willeat, Todd <TWilleat_at_MHP.SMHS.com>
Date: Thu, 17 May 2001 16:37:25 -0500

>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_at_MHP.SMHS.com]
Sent: Thursday, May 17, 2001 3:05 PM
To: 'tru64-unix-managers_at_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_at_mhp.smhs.com | _) )_
 (((\ \> \/->____<-=-=-=-=->_____<-\/ </ /)))
 (\\\\ \_/ / \ \_/ ////)
  \ / \ /
   \ _/ \_ /
   / / \ \
  /___/ \___\
Received on Thu May 17 2001 - 21:38:47 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT