Skip to content
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

clean unrecognized zombie like process #638

Closed
wants to merge 1 commit into from

Conversation

pomarec
Copy link
Contributor

@pomarec pomarec commented Nov 3, 2013

Following discussion in #568

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 3ac6006 on pomarec:zombie-unrecongnized into 5cbb968 on mozilla-services:master.

@pomarec
Copy link
Contributor Author

pomarec commented Nov 4, 2013

Anyway it does not work with the new async architecture. I noticed a first issue, max_age mechanism of watchers is broken.

@pomarec pomarec closed this Nov 4, 2013
self.notify_event("zombie", {"process_pid": process.pid,
"time": time.time()})
self.processes.pop(process.pid)
self.kill_process(process)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the async switch, kill_process is a coroutine so you can't just call self.kill_process, you have to yield it.

BTW, with this kind of dead processes, maybe it would be better to send a SIGKILL signal and not to start a complete shutdown process (SIGTERM, wait graceful_timeout, SIGKILL...).

And what about putting this logic into reap_processes method ?

@pomarec
Copy link
Contributor Author

pomarec commented Nov 8, 2013

see #641

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants