summaryrefslogtreecommitdiff
path: root/libbb/procps.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/procps.c')
-rw-r--r--libbb/procps.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libbb/procps.c b/libbb/procps.c
index e73c0dc..25f42ff 100644
--- a/libbb/procps.c
+++ b/libbb/procps.c
@@ -50,9 +50,7 @@ procps_status_t * procps_scan(int save_user_arg0)
struct stat sb;
if (!dir) {
- dir = opendir("/proc");
- if(!dir)
- bb_error_msg_and_die("Can't open /proc");
+ dir = bb_xopendir("/proc");
}
for(;;) {
if((entry = readdir(dir)) == NULL) {