summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-01-04 21:58:25 +0000
committerphk <phk@FreeBSD.org>2003-01-04 21:58:25 +0000
commit4a03bcc47da1950a8d976e9bc194f23717c1075f (patch)
tree71c1534f159a34cdb8f7560e1415ca5267e597f5 /usr.bin
parentcd57ad899fc4b16669e8bd6f0ddc0d798d9b323f (diff)
downloadFreeBSD-src-4a03bcc47da1950a8d976e9bc194f23717c1075f.zip
FreeBSD-src-4a03bcc47da1950a8d976e9bc194f23717c1075f.tar.gz
When we close a display, mark it as not-initialized so that we will
properly open it again next time. Submitted by: Trent Nelson <trent@arpa.com>
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/systat/cmds.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/systat/cmds.c b/usr.bin/systat/cmds.c
index 0bdc2dd..b15286b 100644
--- a/usr.bin/systat/cmds.c
+++ b/usr.bin/systat/cmds.c
@@ -119,6 +119,7 @@ command(cmd)
goto done;
alarm(0);
(*curcmd->c_close)(wnd);
+ curcmd->c_flags &= ~CF_INIT;
wnd = (*p->c_open)();
if (wnd == 0) {
error("Couldn't open new display");
OpenPOWER on IntegriCloud