|
@@ -84,7 +84,7 @@ EOT
|
|
|
|
|
|
protected function execute(InputInterface $input, OutputInterface $output)
|
|
|
{
|
|
|
- if (function_exists('pcntl_async_signals')) {
|
|
|
+ if (function_exists('pcntl_async_signals') && function_exists('pcntl_signal')) {
|
|
|
pcntl_async_signals(true);
|
|
|
pcntl_signal(SIGINT, array($this, 'revertComposerFile'));
|
|
|
pcntl_signal(SIGTERM, array($this, 'revertComposerFile'));
|