diff options
author | phk <phk@FreeBSD.org> | 1995-03-12 01:47:08 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-03-12 01:47:08 +0000 |
commit | 8fc888c0b81609378c809bde03b5903140db5caa (patch) | |
tree | a87a27136bc859e17ceafcb5855ac15f4e2afefd /usr.bin/systat | |
parent | 12b812885afabd881c69e8f4b7e6f58b73f74c69 (diff) | |
download | FreeBSD-src-8fc888c0b81609378c809bde03b5903140db5caa.zip FreeBSD-src-8fc888c0b81609378c809bde03b5903140db5caa.tar.gz |
Don't use curses until initialized.
Diffstat (limited to 'usr.bin/systat')
-rw-r--r-- | usr.bin/systat/main.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/systat/main.c b/usr.bin/systat/main.c index 07975f3..69523c9 100644 --- a/usr.bin/systat/main.c +++ b/usr.bin/systat/main.c @@ -111,14 +111,6 @@ main(argc, argv) error("%s", errbuf); exit(1); } - if (kvm_nlist(kd, namelist)) { - nlisterr(namelist); - exit(1); - } - if (namelist[X_FIRST].n_type == 0) { - fprintf(stderr, "couldn't read namelist.\n"); - exit(1); - } signal(SIGINT, die); signal(SIGQUIT, die); signal(SIGTERM, die); @@ -141,6 +133,14 @@ main(argc, argv) fprintf(stderr, "Couldn't set up load average window.\n"); die(0); } + if (kvm_nlist(kd, namelist)) { + nlisterr(namelist); + exit(1); + } + if (namelist[X_FIRST].n_type == 0) { + fprintf(stderr, "couldn't read namelist.\n"); + exit(1); + } gethostname(hostname, sizeof (hostname)); NREAD(X_HZ, &hz, LONG); NREAD(X_STATHZ, &stathz, LONG); |