From 319e2a24deed9a2861a3ca4589c42b7bb993b917 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sat, 4 Jan 2003 21:58:25 +0000 Subject: [PATCH] When we close a display, mark it as not-initialized so that we will properly open it again next time. Submitted by: Trent Nelson --- usr.bin/systat/cmds.c | 1 + 1 file changed, 1 insertion(+) 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");