From b4ee18be6a1ba1dca0a85fdd796bc33b4984ced6 Mon Sep 17 00:00:00 2001 From: Matt Saladna Date: Sat, 16 Mar 2024 12:26:55 -0400 Subject: [PATCH] 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. --- nvm.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nvm.sh b/nvm.sh index c8c3c8a..1d515b1 100644 --- a/nvm.sh +++ b/nvm.sh @@ -1122,10 +1122,9 @@ nvm_list_aliases() { if [ -n "${LTS_ALIAS}" ]; then nvm_echo "${LTS_ALIAS}" fi - } & + } done - wait - ) | command sort + ) return }