home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / aix / 8925 < prev    next >
Encoding:
Text File  |  1992-08-19  |  1.4 KB  |  52 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!gumby!yale!mintaka.lcs.mit.edu!hal.gnu.ai.mit.edu!mycroft
  3. From: mycroft@hal.gnu.ai.mit.edu (Charles Hannum)
  4. Subject: TCSH hangup propagation under AIX and loopy processes
  5. Message-ID: <1992Aug19.173445.25120@mintaka.lcs.mit.edu>
  6. Sender: news@mintaka.lcs.mit.edu
  7. Organization: MIT Laboratory for Computer Science
  8. Date: Wed, 19 Aug 1992 17:34:45 GMT
  9. Lines: 41
  10.  
  11.  
  12. [If you see another article which looks very similar to this, disregard
  13. it.]
  14.  
  15. (Well, any system with POSIX process groups, really.)
  16.  
  17. The following patch to tcsh 6.02 seems to fix the problem for me:
  18.  
  19. -----8<-----snip-----8<-----snip-----8<-----snip-----8<-----snip-----8<-----
  20. *** sh.c.orig    Fri May 15 20:00:38 1992
  21. --- sh.c    Wed Aug 19 13:23:43 1992
  22. ***************
  23. *** 1936,1942 ****
  24.   #endif                /* TIOCCDTR */
  25.       }
  26.   #endif                /* TESLA */
  27.       untty();
  28.       _exit(i);
  29.   }
  30. --- 1936,1947 ----
  31.   #endif                /* TIOCCDTR */
  32.       }
  33.   #endif                /* TESLA */
  34. !     if (loginsh) {
  35. !     struct process *pp;
  36. !     for (pp = proclist.p_next; pp; pp = pp->p_next)
  37. !         if (pp->p_procid == pp->p_jobid)
  38. !         (void) killpg (pp->p_jobid, SIGHUP);
  39. !     }
  40.       untty();
  41.       _exit(i);
  42.   }
  43. -----8<-----snip-----8<-----snip-----8<-----snip-----8<-----snip-----8<-----
  44.  
  45. Could someone at IBM *PLEASE* make the corresponding change to csh?
  46. <<Insert standard pitch for free software.>>
  47.  
  48. -- 
  49.  \   Charles Hannum, mycroft@ai.mit.edu
  50.  /\  White heterosexual atheist male (WHAM) pride!
  51.