You are not logged in.

#1 2009-04-06 10:00:35

Breakage
Member
From: London
Registered: 2008-02-12
Posts: 198
Website

urxvtd zombie

I occasionally get a second urxvtd process zombied.
Not sure why this is happening, anyone know how to fix it?
Searched around couldn't figure it out, maybe it's got something do to with one of configs?

.xdefaults: http://rafb.net/p/0oX1i432.html
.xinitrc: http://rafb.net/p/1OguwD67.html

Offline

#2 2009-04-06 10:07:44

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: urxvtd zombie

My experience is that when you run urxvtd like this, it survives X's shutdown - so it stays there as a zombie. However I didn't try to fix it (ie try running it with different parameters); what I do is I kill all urxvtd's just before running a new one in xinitrc.

Offline

#3 2009-04-06 10:27:09

Breakage
Member
From: London
Registered: 2008-02-12
Posts: 198
Website

Re: urxvtd zombie

bender02 wrote:

My experience is that when you run urxvtd like this, it survives X's shutdown - so it stays there as a zombie. However I didn't try to fix it (ie try running it with different parameters); what I do is I kill all urxvtd's just before running a new one in xinitrc.

Oh thanks will do that, i assumed that it would always get killed when i shutdown X.

Offline

#4 2009-04-06 16:24:46

Square
Member
Registered: 2008-06-11
Posts: 435

Re: urxvtd zombie

If you want urxvtd to die with the X session, you need to bind it with the X session.

i.e. use the -o switch!

Check out the manpage. It's all there.


 

Offline

#5 2009-04-06 16:33:17

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: urxvtd zombie

He is using the -o switch.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#6 2009-04-06 18:23:17

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: urxvtd zombie

You can try to drop the '&', since urxvtd's '-f' switch forks it automatically. That could maybe solve the problem.

EDIT: just tried that, and the urxvtd daemon is really shut down together with X.
EDIT2: well tried now also with '&', and the daemon is still brought down. So I guess my suggestion is not helpful.

Last edited by bender02 (2009-04-06 18:26:47)

Offline

#7 2009-04-06 19:43:59

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: urxvtd zombie

you might increase your chances of getting it to die with X if you don't fork it to the background (-f) but leave it as a child of X.  may work, may not.  worth a try.

you could also add a check in your .xinitrc to automate benders suggestion, something like this:

pgrep urxvtd | while read PID; do
   kill $PID
done
urxvtd -q -o -f &

i have the exact same .xinitrc as you though and i can't recreate the problem.  i'm using urxvt-256color from AUR.

Offline

#8 2009-04-06 20:58:54

Breakage
Member
From: London
Registered: 2008-02-12
Posts: 198
Website

Re: urxvtd zombie

@bender02. thanks for the tip, i dropped the &.
@brisbin33. thanks also.

I've been restarting X also opening closing terminals but the zombie daemon hasn't been occuring recently. hmm

Offline

Board footer

Powered by FluxBB