Date: Tue, 10 Feb 2015 22:23:53 +0000 (UTC) From: Michael Gmelin <grembo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r278541 - head/usr.bin/w Message-ID: <201502102223.t1AMNrW8060624@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: grembo (ports committer) Date: Tue Feb 10 22:23:52 2015 New Revision: 278541 URL: https://svnweb.freebsd.org/changeset/base/278541 Log: 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 Modified: head/usr.bin/w/w.c Modified: head/usr.bin/w/w.c ============================================================================== --- head/usr.bin/w/w.c Tue Feb 10 22:05:57 2015 (r278540) +++ head/usr.bin/w/w.c Tue Feb 10 22:23:52 2015 (r278541) @@ -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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502102223.t1AMNrW8060624>