From 441ee032a39fd7d39dc291ff24a7c43f3ab98a65 Mon Sep 17 00:00:00 2001 From: Michael Gmelin Date: Tue, 10 Feb 2015 22:23:52 +0000 Subject: [PATCH] Add xo_finish() to w.c in case it's invoked as uptime Reviewed by: marcel Approved by: marcel Differential Revision: https://reviews.freebsd.org/D1821 --- usr.bin/w/w.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c index effd0e304ae0..0889c4c1b43f 100644 --- a/usr.bin/w/w.c +++ b/usr.bin/w/w.c @@ -264,7 +264,9 @@ main(int argc, char *argv[]) if (header || wcmd == 0) { pr_header(&now, nusers); if (wcmd == 0) { - xo_close_container("uptime-information"); + xo_close_container("uptime-information"); + xo_finish(); + (void)kvm_close(kd); exit(0); }