aboutsummaryrefslogtreecommitdiff
path: root/coreutils/nproc.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2021-06-28 07:46:32 +0100
committerRon Yorston <rmy@pobox.com>2021-06-28 07:46:32 +0100
commite1ad66c0b8fd58a7158d40771175a7dab224202d (patch)
tree959d687eee9637151ad5798322586174de331141 /coreutils/nproc.c
parent0fdf99bee07b6c38795eb5415b5e337ab82cfba8 (diff)
parent5dbbd0a6f52befe6bc57baf97d39168e595197f1 (diff)
downloadbusybox-w32-e1ad66c0b8fd58a7158d40771175a7dab224202d.tar.gz
busybox-w32-e1ad66c0b8fd58a7158d40771175a7dab224202d.tar.bz2
busybox-w32-e1ad66c0b8fd58a7158d40771175a7dab224202d.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'coreutils/nproc.c')
-rw-r--r--coreutils/nproc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/nproc.c b/coreutils/nproc.c
index 7025765c5..b345255a7 100644
--- a/coreutils/nproc.c
+++ b/coreutils/nproc.c
@@ -14,7 +14,7 @@
14//kbuild:lib-$(CONFIG_NPROC) += nproc.o 14//kbuild:lib-$(CONFIG_NPROC) += nproc.o
15 15
16//usage:#define nproc_trivial_usage 16//usage:#define nproc_trivial_usage
17//usage: ""IF_LONG_OPTS("--all --ignore=N") 17//usage: ""IF_LONG_OPTS("[--all] [--ignore=N]")
18//usage:#define nproc_full_usage "\n\n" 18//usage:#define nproc_full_usage "\n\n"
19//usage: "Print number of available CPUs" 19//usage: "Print number of available CPUs"
20//usage: IF_LONG_OPTS( 20//usage: IF_LONG_OPTS(
@@ -49,7 +49,7 @@ int nproc_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
49 if (cpuid && isdigit(cpuid[strlen(cpuid) - 1])) 49 if (cpuid && isdigit(cpuid[strlen(cpuid) - 1]))
50 count++; 50 count++;
51 } 51 }
52 closedir(cpusd); 52 IF_FEATURE_CLEAN_UP(closedir(cpusd);)
53 } 53 }
54 } else 54 } else
55#endif 55#endif