aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-01-04 21:58:25 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-01-04 21:58:25 +0000
commit319e2a24deed9a2861a3ca4589c42b7bb993b917 (patch)
tree71c1534f159a34cdb8f7560e1415ca5267e597f5 /usr.bin
parent3c3871e5e6e218053dc1b1fe1d48ac32560feef7 (diff)
downloadsrc-319e2a24deed9a2861a3ca4589c42b7bb993b917.tar.gz
src-319e2a24deed9a2861a3ca4589c42b7bb993b917.zip
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>
Notes
Notes: svn path=/head/; revision=108683
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 0bdc2dd5e02c..b15286b580c5 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");