Path: utzoo!attcan!uunet!husc6!rutgers!mcnc!duke!dukempd!cr From: cr@dukempd.phy.duke.edu (Cyrus Rahman) Newsgroups: news.sysadmin Subject: Re: who, me? Message-ID: <746@dukempd.phy.duke.edu> Date: 17 Nov 88 06:41:23 GMT References: <2975@ci.sei.cmu.edu> <793@mailrus.cc.umich.edu> Reply-To: cr@dukempd.phy.duke.edu (Cyrus Rahman) Organization: Duke University Physics Dept.; Durham, N.C. Lines: 16 peter honeyman writes: \Patrick Barron writes: \>You can't necessarily TIOCSTI a terminal if you can write to it. TIOCSTI \>only works if 1) the terminal in question is your process's control terminal, \>or 2) you're root. \ \this doesn't work in 4.3 (i'm told), but it used to work in 4.1 and 4.2. \i learned about it from rtm. \ \ peter One can TIOCSTI any tty one can open for reading in 4.3. It is sometimes necessary to first use TIOCNOTTY or setpgrp(getpid(), 0). There is probably no good reason to make TIOCSTI check the tty's process group anyway.