We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1ab9842 + 9ebd68b commit adf43f8Copy full SHA for adf43f8
src/XdebugHandler.php
@@ -256,6 +256,12 @@ protected function restart($command)
256
*/
257
private function doRestart($command)
258
{
259
+ // ignore SIGINTs here so the child process can receive and handle them
260
+ if (function_exists('pcntl_async_signals') && function_exists('pcntl_signal')) {
261
+ pcntl_async_signals(true);
262
+ pcntl_signal(SIGINT, SIG_IGN);
263
+ }
264
+
265
passthru($command, $exitCode);
266
$this->notify(Status::INFO, 'Restarted process exited '.$exitCode);
267
0 commit comments