How to make a tty un'open(2)'able after another process opens it

charles spell cs00chs at unccvax.uncc.edu
Tue Sep 11 01:40:58 AEST 1990


Is there a way (besides lock files) that I can set a /dev/tty* to be
unopenable by other processes once it is opened by a process? The optimal
way would be for open() to return -1 if the tty is already being used.


It seems like there would be an easy way via ioctl(). I would like to
know how to do this on a pyramid 9815 even if it is not portable.
-- 
.--------------------------.  ...  |On the border of your mind lies a place
|uunet!mcnc!unccvax!cs00chs|  (")  |where dreams and reality are one...I will 
`--------------------------'-w-U-w-|take you there, for I am the subject...
\%\%\%\%\%\%\%\%\%\%\%\%\%\%\%\%\%\|the subject of your imagination. -Aldo Nova



More information about the Comp.unix.questions mailing list