Skip to content

Commit

Permalink
Partial reversion of #1517. Each alias lookup adds 8 to the pids.curr…
Browse files Browse the repository at this point in the history
…ent 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.
  • Loading branch information
msaladna committed Mar 16, 2024
1 parent 3b81123 commit b4ee18b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1122,10 +1122,9 @@ nvm_list_aliases() {
if [ -n "${LTS_ALIAS}" ]; then
nvm_echo "${LTS_ALIAS}"
fi
} &
}
done
wait
) | command sort
)
return
}

Expand Down

0 comments on commit b4ee18b

Please sign in to comment.