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:
parent
5936415b09
commit
e23d5a9e79
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user