Homec4science

Use 'ps <pid>' to test for process existence if posix is not available

Authored by epriestley <git@epriestley.com> on Feb 3 2012, 01:03.

Description

Use 'ps <pid>' to test for process existence if posix is not available

Summary: posix may not be loaded on the web/cgi SAPI but we call posix functions
on this pathway, which we hit on /daemon/. Fall back to exec if we don't have
posix.

Test Plan: Added "&& false" and verified the page executed a bunch of "ps"
tests.

Reviewers: Koolvin, btrahan

Reviewed By: btrahan

CC: aran, epriestley

Maniphest Tasks: T821

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

Details

Committed
epriestley <git@epriestley.com>Feb 3 2012, 01:03
Pushed
aubortJan 31 2017, 17:16
Parents
rPH33fb7117ae9b: XSS in Owners
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHdc36317ea48f: Use 'ps <pid>' to test for process existence if posix is not available (authored by epriestley <git@epriestley.com>).Feb 3 2012, 01:03