Skip to content

Commit 175e3fb

Browse files
staabmondrejmirtes
authored andcommitted
pcntl_exec() is not supported by blackfire
1 parent 93eaf56 commit 175e3fb

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎src/Turbo/TurboProcessRestarter.php‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@ public static function restartIfSuitable(array $argv): void
107107
// second try either
108108
return;
109109
}
110+
if (
111+
isset($_SERVER['BLACKFIRE_AGENT_SOCKET'])
112+
) {
113+
// pcntl_exec() is not supported by blackfire
114+
// see https://support.blackfire.platform.sh/hc/en-us/articles/4843014509202-Conflicts-with-pcntl-exec-calls
115+
return;
116+
}
110117
if (
111118
!function_exists('pcntl_exec')
112119
|| !function_exists('pcntl_fork')

0 commit comments

Comments
 (0)