home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / hp / 14062 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.6 KB

  1. Xref: sparky comp.sys.hp:14062 comp.unix.wizards:5224
  2. Newsgroups: comp.sys.hp,comp.unix.wizards
  3. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!nott!bnrgate!bmers145!bmers145!doig
  4. From: doig@bmerh935.bnr.ca (Kelly Doig)
  5. Subject: HPUX 8.0 csh race condition bug ????
  6. Message-ID: <DOIG.92Dec14194748@bmerh935.bnr.ca>
  7. Sender: news@bmers145.bnr.ca
  8. Organization: Bell-Northern Research Ltd, Ottawa, Canada
  9. Date: 14 Dec 92 19:47:48
  10. Lines: 31
  11.  
  12. Greetings;
  13.  
  14. Has anyone else seen a race condition where the csh hangs when
  15. creating children ??
  16.  
  17. I am working on a port of telnetd.
  18.  
  19. The problem I am seeing is that the csh exec'd by login seems to have
  20. a race condition. Children that the csh tries to create sometimes
  21. block somewhere between the fork() and the exec().
  22.  
  23. ps - shows that the child process has been created but that the name
  24. has not yet been changed. The child process is not waiting on the pty
  25. but is waiting on the _u area which I am told means that only a signal
  26. will awaken it.
  27.  
  28. If I compile HP's csh code with some of the debug printfs compiled in,
  29. the problem does not appear to happen.
  30.  
  31. If I compile HP's csh code with the -g option, the problem does not
  32. appear to happen.
  33.  
  34. Anyone have any idea's ??
  35.  
  36. Kelly D. Doig
  37. --
  38. +--------------------------------------------------------------------------+
  39. | Kelly Donald Doig                  INTERNET : doig@bnr.ca                |
  40. | Bell-Northern Research, Ltd.       PHONE    : (613)763-2746              |
  41. | Ottawa, Ontario, Canada            PHYSICAL : Mer Twr 3 2nd Flr E5       |
  42. +--------------------------------------------------------------------------+
  43.