1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Only use one thread for language server if there’s no pcntl extension

This commit is contained in:
Matthew Brown 2019-01-10 00:15:59 -05:00
parent 5936415b09
commit e23d5a9e79

View File

@ -875,6 +875,10 @@ class ProjectAnalyzer
return 1;
}
if (!extension_loaded('pcntl')) {
return 1;
}
$has_nproc = trim((string) @shell_exec('command -v nproc'));
if ($has_nproc) {
$ret = @shell_exec('nproc');