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