From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653647621936.tru64-unix-managers.marc@archive.invalid> From: "Willeat, Todd" Date: Thu, 17 May 2001 21:37:25 +0000 To: tru64-unix-managers Subject: SUMMARY: How are ttys assigned? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653647621936 >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 | _) )_ (((\ \> \/->____<-=-=-=-=->_____<-\/