Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!texbell!sugar!ficc!peter From: peter@ficc.ferranti.com (Peter da Silva) Newsgroups: comp.unix.questions Subject: Re: How do you handle while(1) fork(); ? Message-ID: <92N42M7@xds13.ferranti.com> Date: 13 Jul 90 18:30:17 GMT References: <841@massey.ac.nz> <671@mtune.ATT.COM> <1655@yenta.alb.nm.us> Reply-To: peter@ficc.ferranti.com (Peter da Silva) Organization: Xenix Support, FICC Lines: 9 In article <1655@yenta.alb.nm.us> dt@yenta.alb.nm.us (David B. Thomas) writes: > preventing the administrator's shell from forking 'su'. And you can't > 'exec' su, since then su would still fail to fork 'kill', and then you're > logged out! exec su -c 'exec kill -9 -1' So the user just has to put something in their .cshrc to force the shell to exit if they can't fork. set a=`echo hi` if (a != hi) exit -- Peter da Silva. `-_-' +1 713 274 5180.