summaryrefslogtreecommitdiff
path: root/sbin/wsconsctl/wsconsctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/wsconsctl/wsconsctl.c')
-rw-r--r--sbin/wsconsctl/wsconsctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/wsconsctl/wsconsctl.c b/sbin/wsconsctl/wsconsctl.c
index c9b47bff5d7..d6d70dadeb3 100644
--- a/sbin/wsconsctl/wsconsctl.c
+++ b/sbin/wsconsctl/wsconsctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsconsctl.c,v 1.16 2004/08/09 18:39:22 deraadt Exp $ */
+/* $OpenBSD: wsconsctl.c,v 1.17 2006/04/01 23:13:53 miod Exp $ */
/* $NetBSD: wsconsctl.c,v 1.2 1998/12/29 22:40:20 hannken Exp $ */
/*-
@@ -166,6 +166,8 @@ main(int argc, char *argv[])
}
f->flags |= FLG_GET;
(*sw->getval)(sw->name, sw->fd);
+ if (f->flags & FLG_DEAD)
+ continue;
pr_field(sw->name, f, sep);
continue;
}