Homec4science

Fix daemon issues caused by Ubuntu's surprising intermediary shell

Authored by epriestley <git@epriestley.com> on May 2 2011, 18:53.

Description

Fix daemon issues caused by Ubuntu's surprising intermediary shell

Summary:
On OSX and other Linuxii, proc_open('./exec_daemon ...') opens a PHP process; on
Ubuntu it opens a "sh -c" process which opens a PHP process. The existence of
this surprising shell made everything stop working.

Use 'exec' to replace the shell with the PHP process.

Test Plan:
Ran daemons on OSX and Ubuntu, behavior seems okay in all cases.

Keep in mind I have absolutely no idea how Lunix works so this probably breaks
the world. (cc: simpkins)

Reviewed By: rm
Reviewers: rm, aran, tuomaspelkonen, jungejason
Commenters: aran
CC: simpkins, aran, epriestley, rm
Differential Revision: 212

Details

Committed
epriestley <git@epriestley.com>May 2 2011, 20:54
Pushed
aubortMar 17 2017, 12:03
Parents
rPHUcdeca222108a: Move coding standards document to Phabricator
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHU3721204cc896: Fix daemon issues caused by Ubuntu's surprising intermediary shell (authored by epriestley <git@epriestley.com>).May 2 2011, 20:54