home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!caen!batcomputer!theory.TC.Cornell.EDU!hargrove
- From: hargrove@theory.TC.Cornell.EDU (Paul H. Hargrove)
- Subject: Re: shutdown not doing so (solved)
- Message-ID: <1992Jul29.233926.20383@tc.cornell.edu>
- Sender: news@tc.cornell.edu
- Nntp-Posting-Host: theory.tc.cornell.edu
- Organization: Cornell University, Ithaca New York, USA
- References: <1992Jul28.185257.9457@athena.mit.edu> <4155@inca.comlab.ox.ac.uk>
- Date: Wed, 29 Jul 1992 23:39:26 GMT
- Lines: 30
-
- In article <4155@inca.comlab.ox.ac.uk> as@prg.ox.ac.uk (Andrew Stevens) writes:
- >If, like me, you've been irritated by shutdown occasionally hanging
- >you may be interested to know the cause. Basically, when shutdown
- >runs it uses /etc/utmp to figure out which tty's to send shutdown
- >messages to. If /etc/utmp is messed up containing entries for
- >pty's with nothing attached (i.e. messily killed of xterm's and the
- >like) shutdown tries to write to these and hangs. Various
- >work-around's are (1) always kill things off by hand before exiting X-windows,
- >(2) hack shutdown to ignore pty's (3) Zap the /etc/utmp file by hand
- >if shutdown hangs.
- >
- >I haven't (quite) got the energy to figure out the ioctl's needed to
- >properly cure this problem.
- >
-
- I recently patched my shutdown source to address this problem, but got a
- little over zealous reclaiming disk space and lost the source. I'll try
- to recreate my patches, but in the mean time, I'll send a binary (static,
- since I consider shutdown to be neccesary even if my shared libs bite the
- dust) to one of the ftp sites in the next few days.
-
- >Andrew
- > Andrew Stevens
- > Programmming Research Group JANET: Andrew.Stevens@uk.ac.oxford.prg
- > 11 Keble Road, Oxford, England UUCP: ...!uunet!mcvax!ukc!ox-prg!as
- > OX1 3QD +44 0865 272563
- --
- Paul H. Hargrove
- hargrove@theory.tc.cornell.edu
- "A witty saying proves nothing." --Voltaire
-