-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
websockify has a zombie problem #47
Comments
Heh, I just noticed this last night. It was going to take me a while to find the correct way to reap without blocking so thank you for the solution! Commit: 0a2f850 |
Does the version in noVNC update directly from this commit? |
Commit ec2b614 in noVNC. |
It's not automatic but I do pull changes back and forth for shared code. If git submodule support was more automatic (i.e. by default on clone/pull) I would just use that. |
BTW: the reaper really needs to be in a loop to catch the odd occasion where you get a SIGCHLD while you're in the signal handler and end up with a couple of processes in the wait queue. Had a couple of them today. The try block is to catch the case where there are no child processes - which should never happen of course...
|
There doesn't appear to be anything in the python version of websockify that reaps zombie processes. Certainly it leaves a load in the process list when I run it up on Ubuntu.
It looks like the SIGCHLD signal has to be ignored completely:
or there needs to be a reap loop in the do_SIGCHLD procedure using something like:
to replicate what the ignore does automatically.
HTH
NeilW
The text was updated successfully, but these errors were encountered: