home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / ultrix / 9445 < prev    next >
Encoding:
Text File  |  1993-01-23  |  1.8 KB  |  48 lines

  1. Newsgroups: comp.unix.ultrix
  2. Path: sparky!uunet!stanford.edu!nntp.Stanford.EDU!eillihca@drizzle.Stanford.EDU
  3. From: eillihca@drizzle.StanFord.EDU ( Achille Hui, the Day Dreamer )
  4. Subject: Re: Zombie processes (Ultrix 4.3/MIPS)
  5. Message-ID: <eillihca.93012213314724896@drizzle.Stanford.EDU>
  6. Sender: news@leland.Stanford.EDU (Mr News)
  7. X-Transfer-Agent: nntp.stanford.edu (NNTP)
  8. Organization: Dept. of Physics, Stanford University.
  9. Date: 22 Jan 93 21:31:47 GMT
  10. Lines: 36
  11.  
  12. przemek@rrdstrad.nist.gov (Przemek Klosowski) writes: 
  13.  
  14. >The wait channel for the Xterm process indicates that it waits in
  15. >'select' (as reported by SPS3.0). The Xsession file execs the xterm
  16. >command as its last action, and the zombies are children of Xterm.
  17. >However, when I added echo/sleep commands to the beginnign of .cshrc
  18. >and .login, I realized that the zombies are created before .cshrc is
  19.  
  20. Did you start your xterm in your .xsession through an "exec" instead
  21. of create it as a subprocess? If that is the case, then the zombies
  22. are the background process you started in your .xsession. A trick
  23. to eliminate them is to start them as the grand child in background
  24. of your .xsession and your .xsession explictly wait for the child
  25. before your exec your last process. Following is an example .xsession
  26. which illustrated the idea.
  27.  
  28. #!/bin/sh5
  29. cd
  30. xrdb  -merge .Xdefaults;
  31. xset  click 0 m 3 20  s 600 5
  32. (
  33.     mwm &
  34.     sleep 1; xterm -name master -sb +ut -ls \
  35.         -geometry 80x24-8-8 -n Master -title 'Local XTerm (Master)' &
  36.     sleep 2; xhost    cardinal  drizzle   grizzle  frazzle fenrir \
  37.             > /dev/null 2>&1 &
  38. ) & wait $!
  39. exec xterm -name console -sb +ut +ls \
  40.     -geometry 80x6+8+8 -n Console -title 'Console'
  41.  
  42. Hopefully this helps....
  43. -------------------------------------achille (eillihca@drizzle.stanford.edu)
  44. JAXU -- Just Another X User.
  45.  
  46.  
  47.  
  48.