Homec4science

Add a method to identify running daemons in the process table

Authored by epriestley <git@epriestley.com> on Apr 11 2013, 19:01.

Description

Add a method to identify running daemons in the process table

Summary: Ref T2374. Basically, sometimes we lose track of daemons and users get weird behaviors as a result. It's hard to figure out what's causing us to lose track of daemons since it rarely/never repros, but very easy to add some fallback code which does sanity checks against the process table. This should make the condition easy to understand/resolve until we eventually isolate and fix the pidfile stuff, or understand it better, or whatever.

Test Plan:
Ran the method and got reasonable output:

{F40173}

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2374

Differential Revision: https://secure.phabricator.com/D5663

Details

Committed
epriestley <git@epriestley.com>Apr 11 2013, 19:01
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU5060f4f1b8ae: Never self-close tags which can't self-close in phutil_tag()
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHUc5f85ae1056c: Add a method to identify running daemons in the process table (authored by epriestley <git@epriestley.com>).Apr 11 2013, 19:01