Comment 4 for bug 357468

Revision history for this message
Michael B. Trausch (mtrausch) wrote :

This bug is really getting to be annoying me. :-)

I thought I had found a solution, but Unix-like systems seem to consider zombie processes' children to be orphaned, so trying to keep AllTray's child process around as a way of retaining the PID for its children (by preserving the child's PPID value) doesn't work out, at least on Linux and NetBSD.

One potential solution that I have thought of is to simply use a helper library that can provide assistance by intercepting fork() and returning information to the parent AllTray process. The only problem that I can think of there is that it wouldn't work for application software that has to run setuid or setgid, because the dynamic linker (at least on Linux, don't know about other systems) won't let that happen without the library itself being setuid/setgid, which is less than desirable. However, I haven't (yet) come up with an alternative to that...

Arrgh. Why can't the world just be happy place and let zombies have children?