home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / linux / 17185 < prev    next >
Encoding:
Text File  |  1992-11-19  |  2.5 KB  |  51 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!mcsun!Germany.EU.net!Urmel.Informatik.RWTH-Aachen.DE!gandalf!michael
  3. From: michael@gandalf.moria (Michael Haardt)
  4. Subject: 0.98.pl5, init, getty, login and deep despairation ...
  5. Message-ID: <921118387@gandalf.moria>
  6. Lines: 36
  7. Sender: news@Urmel.Informatik.RWTH-Aachen.DE (Newsfiles Owner)
  8. Nntp-Posting-Host: rama
  9. Reply-To: u31b3hs@pool.informatik.rwth-aachen.de (Michael Haardt)
  10. Organization: An old and gray machine, somewhere in Moria.
  11. Date: Wed, 18 Nov 92 01:04:44 +0100
  12. Return-Path: <u31b3hs@pool.informatik.rwth-aachen.de>
  13. Lines: 36
  14.  
  15. Upgrading to 0.98.pl5 went fine, until I first booted the new kernel.
  16. The result was wonderful, because init complained about all logins
  17. respawning too fast.  The reason was a core-dumping getty-2.03.  So I
  18. made entries for two shells in inittab and booted again.
  19.  
  20. After short debugging it was obvious that a quick hack in getty-2.03 was
  21. the reason, it just never showed up.  I removed the #ifndef linux, did
  22. telinit q and at least I got my logins back.  But now utmp entries
  23. weren't removed when logging out.  So I went through the chain init,
  24. getty and login.  Init makes utmp entries with id e.g. c4 for tty4.  So
  25. far so good.  getty changed the id to 4, which it shouldn't do in my
  26. opinion, otherwise there would be no reason for init to make id entries.
  27. So I changed getty again.  Then I had the idea to "get a production
  28. version now where it runs".  A bad idea, but I was able to do so after
  29. adding a couple forgotten #ifdef DEBUGs.  Not to talk about the fact,
  30. that of course SETTERM wasn't set and TTYTYPE was set to "x" -- a mess.
  31.  
  32. Then login didn't care about existing entries at all and I had duplicate
  33. entries, one with c4 and one with 4.  ARGH! So I changed login to change
  34. an existing entry if possible.  And, to be sure, I changed init for only
  35. looking for the pid instead of id when it returns from wait(), because
  36. as we know, processes may not care about the id and change it.
  37.  
  38. The moral of the story?  I don't know, can someone help me?  Are there
  39. really so many bugs, or did I just totally misunderstand it?  I can't
  40. believe that I have to send out cdiffs to three persons now ...  I only
  41. wanted to get a new kernel which doesn't have that page bug.
  42.  
  43. Linus, keep up the good work.  Better to get the bad surprises with
  44. applications now than later, and without a kernel which implements
  45. readonly code pages now, I would never have found that wrong hack in
  46. getty.  I wonder which other software will die next time ...
  47.  
  48. ... to be continued ;-)
  49.  
  50. Michael "seeing more bugs than bytes"
  51.