Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!bsu-cs!dhesi From: dhesi@bsu-cs.UUCP (Rahul Dhesi) Newsgroups: comp.unix.questions Subject: Re: semantics of /dev/tty? Keywords: stat /dev/tty Message-ID: <5655@bsu-cs.UUCP> Date: 12 Feb 89 21:06:52 GMT References: <1181@mina.liu.se> <1001@auspex.UUCP> Reply-To: dhesi@bsu-cs.UUCP (Rahul Dhesi) Organization: CS Dept, Ball St U, Muncie, Indiana Lines: 18 In article <1001@auspex.UUCP> guy@auspex.UUCP (Guy Harris) writes: >"fstat" and "stat" don't go down to the device driver, so it has no >opportunity to do the indirection for you. This is almost certainly a >feature, not a bug. It is almost certainly a feature, not a bug, except in one situation. That situation occurs when a site logs out idle users based on the access time of each user's /dev/ttyxx device, and a user happens to be using C-Kermit, which opens /dev/tty leaves /dev/ttyxx inactive during file transfers. There seems to be no way for a process (even a root process) to find access/modification times for the /dev/tty of another process. This could be considered a bug. -- Rahul Dhesi UUCP: !{iuvax,pur-ee}!bsu-cs!dhesi ARPA: bsu-cs!dhesi@iuvax.cs.indiana.edu