home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / 25431 < prev    next >
Encoding:
Text File  |  1993-01-25  |  1.6 KB  |  38 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!cc.gatech.edu!news
  3. From: zundel@cc.gatech.edu (Eric Zundel Ayers)
  4. Subject: Serial port respawing problem
  5. Message-ID: <1993Jan25.181710.20588@cc.gatech.edu>
  6. Sender: news@cc.gatech.edu
  7. Reply-To: zundel@cc.gatech.edu (Eric Zundel Ayers)
  8. Organization: Georgia Institute of Technology
  9. Date: Mon, 25 Jan 1993 18:17:10 GMT
  10. Lines: 26
  11.  
  12. I got some help with the getty "respawn" problem and a clearer explanation 
  13. of what is going on with getty when you have a hard-wired serial line.
  14.  
  15. BTW, I ran into the same problem again even with the -h flag set
  16. (I'm using 99pl2) but apparently this is fixed for good on 99pl4.
  17.  
  18. ...(anonymous source, thanks for the help)...
  19.  
  20. Close.  What actually happens is that when getty starts up, it does a
  21. vhangup() to clean up any messes that the previous login left on the port
  22. --- and a kernel bug in vhangup() causes Linux to hang up the port and kill
  23. the getty.  So another getty spawns, and around and around we go :-)
  24.  
  25. The 0.99pl4 kernel fixes this.  The "-h" (don't vhangup()) option to getty
  26. works around this, but if the previous login session left anything running
  27. in the background with output to the tty, things can get messy.  (If you
  28. have "stty -tostop", that is.  With "stty tostop" the mess-making program
  29. gets killed instead.  Or at least it should.  I hope vhangup() isn't what
  30. arranges for this... if it is, such a program will be hung until the next
  31. reboot.)
  32.  
  33.  
  34. Eric Z. Ayers
  35. zundel@cc.gatech.edu
  36. Graphics, Visualization, and Usability Center (GVU)
  37. Georgia Institute of Technology, Atlanta, GA 30213 USA 
  38.