Skip to content

Commit 7d1778d

Browse files
committed
revert last commit, the forked children never call back into Go
1 parent 23040e4 commit 7d1778d

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

frankenphp.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,10 +1399,6 @@ static void *execute_script_cli(void *arg) {
13991399
void *exit_status;
14001400
bool eval = (bool)arg;
14011401

1402-
#ifndef PHP_WIN32
1403-
pthread_atfork(NULL, NULL, frankenphp_fork_child);
1404-
#endif
1405-
14061402
/*
14071403
* The SAPI name "cli" is hardcoded into too many programs... let's usurp it.
14081404
*/
@@ -1427,12 +1423,6 @@ static void *execute_script_cli(void *arg) {
14271423
}
14281424
zend_end_try();
14291425

1430-
#ifndef PHP_WIN32
1431-
if (is_forked_child) {
1432-
_exit(EG(exit_status));
1433-
}
1434-
#endif
1435-
14361426
exit_status = (void *)(intptr_t)EG(exit_status);
14371427

14381428
php_embed_shutdown();

0 commit comments

Comments
 (0)