summaryrefslogtreecommitdiffstats
path: root/freebsd
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-01-07 16:08:43 +0100
committerChristian Göttsche <cgzones@googlemail.com>2021-01-07 16:10:05 +0100
commitd800d7a3cef989e47778c0a18b623a44e299c9f3 (patch)
tree8494874f4ec6f5799fc4b63122733661594a45d6 /freebsd
parent27db9297b77c7dd1cb48f334fded7f3c21d5730c (diff)
Drop usage of formatted error messages from <err.h>
They do not clean up the ncurses environment, leaving the terminal in a broken state. Also drop bare usage of exit(3).
Diffstat (limited to 'freebsd')
-rw-r--r--freebsd/FreeBSDProcessList.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/freebsd/FreeBSDProcessList.c b/freebsd/FreeBSDProcessList.c
index 8a9989fb..9beb9239 100644
--- a/freebsd/FreeBSDProcessList.c
+++ b/freebsd/FreeBSDProcessList.c
@@ -9,7 +9,6 @@ in the source distribution for its full text.
#include <assert.h>
#include <dirent.h>
-#include <err.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
@@ -145,7 +144,7 @@ ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidMatchList, ui
fpl->kd = kvm_openfiles(NULL, "/dev/null", NULL, 0, errbuf);
if (fpl->kd == NULL) {
- errx(1, "kvm_open: %s", errbuf);
+ CRT_fatalError("kvm_openfiles() failed");
}
fpl->ttys = Hashtable_new(20, true);

© 2014-2024 Faster IT GmbH | imprint | privacy policy