summaryrefslogtreecommitdiffstats
path: root/usr.bin/w
diff options
context:
space:
mode:
authorgrembo <grembo@FreeBSD.org>2015-02-10 22:23:52 +0000
committergrembo <grembo@FreeBSD.org>2015-02-10 22:23:52 +0000
commitdf0a7dd1f8b9b3fb42ee5a54257202c9549aa9ba (patch)
tree10aeed8818bd2eca765115f9dfbf698633e46973 /usr.bin/w
parentc9fed995684efac8760ecb0a6eb13a4e43842d10 (diff)
downloadFreeBSD-src-df0a7dd1f8b9b3fb42ee5a54257202c9549aa9ba.zip
FreeBSD-src-df0a7dd1f8b9b3fb42ee5a54257202c9549aa9ba.tar.gz
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
Diffstat (limited to 'usr.bin/w')
-rw-r--r--usr.bin/w/w.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c
index effd0e3..0889c4c 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);
}
OpenPOWER on IntegriCloud