From: "Willeat, Todd" <TWilleat () MHP ! SMHS ! com>
To: tru64-unix-managers
Subject: SUMMARY: How are ttys assigned?
Date: Thu, 17 May 2001 21:37:25 +0000 [thread overview]
Message-ID: <102653647621936.tru64-unix-managers.marc@archive.invalid> (raw)
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 | _) )_
(((\ \> \/->____<-=-=-=-=->_____<-\/ </ /)))
(\\\\ \_/ / \ \_/ ////)
\ / \ /
\ _/ \_ /
/ / \ \
/___/ \___\
reply other threads:[~2001-05-17 21:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox