aboutsummaryrefslogtreecommitdiff
path: root/docs/code/tty/main.c
diff options
context:
space:
mode:
authorThomas Walter <31201229+waltoss@users.noreply.github.com>2024-02-28 12:23:23 +0100
committerGitHub <noreply@github.com>2024-02-28 12:23:23 +0100
commit6b56200cc8e0d60d7662f0cb49eccbd23530a3e1 (patch)
tree7ad093ab7f4613b571da3f96120404efbc4c985f /docs/code/tty/main.c
parentcc9e96147f5bc2135814f4aa786c90a06c5a105f (diff)
downloadlibuv-6b56200cc8e0d60d7662f0cb49eccbd23530a3e1.tar.gz
libuv-6b56200cc8e0d60d7662f0cb49eccbd23530a3e1.zip
linux: fix uv_available_parallelism using cgroup (#4278)
uv_available_parallelism does not handle container cpu limit set by systems like Docker or Kubernetes. This patch fixes this limitation by comparing the amount of available cpus returned by syscall with the quota of cpus available defined in the cgroup. Fixes: https://github.com/libuv/libuv/issues/4146
Diffstat (limited to 'docs/code/tty/main.c')
0 files changed, 0 insertions, 0 deletions