Path: utzoo!attcan!uunet!lll-winken!csd4.milw.wisc.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: brianc@daedalus.ucsf.edu (Brian Colfer) Newsgroups: comp.sys.sun Subject: a way to clear without rebooting Message-ID: <8902162111.AA23133@daedalus> Date: 1 Mar 89 08:30:28 GMT Sender: usenet@rice.edu Organization: Sun-Spots Lines: 26 Approved: Sun-Spots@rice.edu Original-Date: Thu, 16 Feb 89 13:11:51 PST X-Sun-Spots-Digest: Volume 7, Issue 174, message 11 of 15 root%helios.UCSC.EDU@ucscc.ucsc.edu (De Clarke (Systems Mgr)): > 1) Has anyone managed to kill off user processes that go ? >... > [[ We've been discussing that quite a bit lately. I don't think there is > a *safe* way to do it, but maybe someone will prove me wrong... --wnl ]] I clear the exiting problem by sending an eof to the port. For example: PID TT STAT TIME COMMAND 22796 00 Z 0:02 cat > /dev/tty00 ^D Works for me every time! Brian : UC San Francisco :...!{ucbvax,uunet}!daedalus.ucsf.edu!brianc Colfer : Dept. of Lab. Medicine : brianc@daedalus.ucsf.edu : PH. 415-476-2325 : BRIANC@UCSFCCA.BITNET [[ I haven't had a chance to try the EOF solution for Suns. I recall when this problem used to occur under older versions of Berkeley Unix that nothing could get rid of them. What I believe cannot be "safely" done (what I meant by my quoted mark) is that there is no safe way to get rid of processes in the general case (that is, regardless of the reason they are stuck). But.....whatever works. --wnl ]]