Path: utzoo!utgpu!watserv1!watmath!att!tut.cis.ohio-state.edu!snorkelwacker!usc!samsung!uakari.primate.wisc.edu!uflorida!mephisto!mcnc!unccvax!cs00chs From: cs00chs@unccvax.uncc.edu (charles spell) Newsgroups: comp.unix.questions Subject: How to make a tty un'open(2)'able after another process opens it Keywords: open(2), ioctl(2) Message-ID: <2699@unccvax.uncc.edu> Date: 10 Sep 90 15:40:58 GMT Organization: University of NC at Charlotte Lines: 13 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