Partial reversion of nvm-sh/nvm#1517. Each alias lookup adds 8 to the pids.current bean counter resulting in 64+ concurrent tids (tasks, w/ threads) thus making it susceptible to hit pids.max. Once reached, subshell behavior is unexpected yielding "retry: Resource temporarily unavailable" errors until cgroup capacity is restored.

This commit is contained in:
Matt Saladna 2024-03-16 12:26:55 -04:00
parent 3b811237cb
commit b4ee18be6a
No known key found for this signature in database
GPG Key ID: ED68223DE93752A9

5
nvm.sh
View File

@ -1122,10 +1122,9 @@ nvm_list_aliases() {
if [ -n "${LTS_ALIAS}" ]; then if [ -n "${LTS_ALIAS}" ]; then
nvm_echo "${LTS_ALIAS}" nvm_echo "${LTS_ALIAS}"
fi fi
} & }
done done
wait )
) | command sort
return return
} }