home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / linux / 6999 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.9 KB  |  43 lines

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