home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!ox-prg!emerald.comlab!as
- From: as@prg.ox.ac.uk (Andrew Stevens)
- Newsgroups: comp.os.linux
- Subject: shutdown not doing so (solved)
- Message-ID: <4155@inca.comlab.ox.ac.uk>
- Date: 29 Jul 92 07:25:13 GMT
- References: <1992Jul28.185257.9457@athena.mit.edu>
- Sender: news@comlab.ox.ac.uk
- Organization: Oxford University Computing Laboratory, UK
- Lines: 18
-
- 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.
-
- 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
-