Avoid using UV API directly
@@ -110,7 +110,7 @@ static zif_handler original_pcntl_fork = (zif_handler) -1;
static PHP_FUNCTION(swow_pcntl_fork)
{
/* TODO: kill all coroutines? */
- uv_loop_fork(cat_event_loop);
+ cat_event_fork();
original_pcntl_fork(INTERNAL_FUNCTION_PARAM_PASSTHRU);
}
