1<?php 2$exit_status = 0; 3go(function () { 4 try { 5 exit(123); 6 } catch (\Swoole\ExitException $e) { 7 global $exit_status; 8 $exit_status = $e->getStatus(); 9 } 10}); 11swoole_event_wait(); 12exit($exit_status); 13
1<?php 2$exit_status = 0; 3go(function () { 4 try { 5 exit(123); 6 } catch (\Swoole\ExitException $e) { 7 global $exit_status; 8 $exit_status = $e->getStatus(); 9 } 10}); 11swoole_event_wait(); 12exit($exit_status); 13