| @@ 93-99 (lines=7) @@ | ||
| 90 | return $exitCode; |
|
| 91 | } |
|
| 92 | ||
| 93 | private function installSignalHandlers($terminable = true) |
|
| 94 | { |
|
| 95 | if (function_exists('pcntl_signal') && !$terminable) { |
|
| 96 | pcntl_signal(SIGTERM, SIG_IGN); |
|
| 97 | pcntl_signal(SIGINT, SIG_IGN); |
|
| 98 | } |
|
| 99 | } |
|
| 100 | ||
| 101 | private function restoreSignalHandlers($terminable = true) |
|
| 102 | { |
|
| @@ 101-107 (lines=7) @@ | ||
| 98 | } |
|
| 99 | } |
|
| 100 | ||
| 101 | private function restoreSignalHandlers($terminable = true) |
|
| 102 | { |
|
| 103 | if (function_exists('pcntl_signal') && !$terminable) { |
|
| 104 | pcntl_signal(SIGTERM, SIG_DFL); |
|
| 105 | pcntl_signal(SIGINT, SIG_DFL); |
|
| 106 | } |
|
| 107 | } |
|
| 108 | ||
| 109 | private function run($command, array $arguments) |
|
| 110 | { |
|