forked from facebook/hhvm
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: This diff adds thunk logic so that we can make the hphpi binary redirect to another binary via execv(). The idea here is that we can set a symlink "/.hphpi-thunk" on individual machines to make hphpi redirect to a different binary. Note that the thunk will only be triggered for the hphpi binary, and only if "/.hphpi-thunk" exists in the filesystem. Other binaries produced by hphpc will not trigger the thunk and will continue to behave the same as before. Blame Rev: Reviewers: je, kma, mwilliams, qigao, oyamauchi CC: Test Plan: fast_tests slow_tests Verify the thunk is triggered for the hphpi binary Vierfy the thunk is not triggered for other binaries Build www and browse the site Revert Plan: Differential Revision: 340844
- Loading branch information
Showing
4 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters