Help me kill my zombies

bridged with qdn.public.qnxrtp.devtools
Post Reply
John Nagle

Help me kill my zombies

Post by John Nagle » Tue Oct 14, 2003 6:05 pm

The dead bodies of the zombies are piling up.

I'm doing inter-node spawns from a program. When
the parent (spawning) process dies, the child continues
to run, of course. If I kill it, it disappears from "ps -A",
but still shows in "System Information" as a child of "io-net",
status "unavailable". There are still entries in /proc for all of
these zombie processes. I don't seem to be able to flush them
out of the system, short of restarting io-net. Is this a resource
leak in "io-net"?

What do I have to do, restart io-net every once in a while?

John Nagle
Team Overbot

Mike Schneider

Re: Help me kill my zombies

Post by Mike Schneider » Wed Oct 15, 2003 12:10 pm

John Nagle wrote:
The dead bodies of the zombies are piling up.

I'm doing inter-node spawns from a program. When
the parent (spawning) process dies, the child continues
to run, of course. If I kill it, it disappears from "ps -A",
but still shows in "System Information" as a child of "io-net",
status "unavailable". There are still entries in /proc for all of
these zombie processes. I don't seem to be able to flush them
out of the system, short of restarting io-net. Is this a resource
leak in "io-net"?

What do I have to do, restart io-net every once in a while?

John Nagle
Team Overbot

Mike Schneider

Re: Help me kill my zombies

Post by Mike Schneider » Wed Oct 15, 2003 12:13 pm

Mike Schneider wrote:

How about adding SPAWN_NOZOMBIE to the inherit flags in the spawn() call?

ms...
John Nagle wrote:

The dead bodies of the zombies are piling up.

I'm doing inter-node spawns from a program. When
the parent (spawning) process dies, the child continues
to run, of course. If I kill it, it disappears from "ps -A",
but still shows in "System Information" as a child of "io-net",
status "unavailable". There are still entries in /proc for all of
these zombie processes. I don't seem to be able to flush them
out of the system, short of restarting io-net. Is this a resource
leak in "io-net"?

What do I have to do, restart io-net every once in a while?

John Nagle
Team Overbot

John Nagle

Re: Help me kill my zombies

Post by John Nagle » Wed Oct 15, 2003 10:58 pm

Ah, another undocumented l33t feature. Where is it
documented? The help page for "spawn" does not list this flag.

It's in the QNX 4 migration guide, listed as a deprecated
feature with no explaination. What does it do? Should I use
it?

There still seems to be a bug that io-net doesn't reap
its children for zombies.

John Nagle
Team Overbot

Mike Schneider wrote:
Mike Schneider wrote:

How about adding SPAWN_NOZOMBIE to the inherit flags in the spawn() call?

ms...


John Nagle wrote:


The dead bodies of the zombies are piling up.


I'm doing inter-node spawns from a program. When
the parent (spawning) process dies, the child continues
to run, of course. If I kill it, it disappears from "ps -A",
but still shows in "System Information" as a child of "io-net",
status "unavailable". There are still entries in /proc for all of
these zombie processes. I don't seem to be able to flush them
out of the system, short of restarting io-net. Is this a resource
leak in "io-net"?


What do I have to do, restart io-net every once in a while?


John Nagle
Team Overbot







Mike Schneider

Re: Help me kill my zombies

Post by Mike Schneider » Thu Oct 16, 2003 12:11 pm

I found it in spawn.h.
It worked for me, zombies without it, no zombies with it.
ms...

John Nagle wrote:
Ah, another undocumented l33t feature. Where is it
documented? The help page for "spawn" does not list this flag.

It's in the QNX 4 migration guide, listed as a deprecated
feature with no explaination. What does it do? Should I use
it?

There still seems to be a bug that io-net doesn't reap
its children for zombies.

John Nagle
Team Overbot

Mike Schneider wrote:
Mike Schneider wrote:

How about adding SPAWN_NOZOMBIE to the inherit flags in the spawn() call?

ms...


John Nagle wrote:


The dead bodies of the zombies are piling up.


I'm doing inter-node spawns from a program. When
the parent (spawning) process dies, the child continues
to run, of course. If I kill it, it disappears from "ps -A",
but still shows in "System Information" as a child of "io-net",
status "unavailable". There are still entries in /proc for all of
these zombie processes. I don't seem to be able to flush them
out of the system, short of restarting io-net. Is this a resource
leak in "io-net"?


What do I have to do, restart io-net every once in a while?


John Nagle
Team Overbot







Post Reply

Return to “qdn.public.qnxrtp.devtools”