From owner-freebsd-current@FreeBSD.ORG Wed Feb 11 00:04:13 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BAC01E0A; Wed, 11 Feb 2015 00:04:13 +0000 (UTC) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 95593EE4; Wed, 11 Feb 2015 00:04:13 +0000 (UTC) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.14.9/8.14.9) with ESMTP id t1B047Im037035 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 10 Feb 2015 16:04:07 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.9/8.14.9/Submit) id t1B046nd037034; Tue, 10 Feb 2015 16:04:06 -0800 (PST) (envelope-from sgk) Date: Tue, 10 Feb 2015 16:04:06 -0800 From: Steve Kargl To: Michael Gmelin Subject: Re: nagios vs w/uptime Message-ID: <20150211000406.GA36774@troutmask.apl.washington.edu> References: <54DA617A.4090309@wemm.org> <4A76A371-B573-4E62-BE78-94944963FFD0@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-current Current , Peter Wemm , Marcel Moolenaar X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Feb 2015 00:04:13 -0000 On Tue, Feb 10, 2015 at 10:24:59PM +0100, Michael Gmelin wrote: > > On 10 Feb 2015, at 22:17, Michael Gmelin wrote: > > > > Just compared 10.1 to current, unmodified output looks the same, but pipelines don't work properly: > > > > 10.1: > > # uptime | wc > > 1 12 68 > > > > Current: > > # uptime | wc > > 0 0 0 > > > > # uptime | cat > > # uptime > > 10:16PM up 9 mins... > > > > Adding xo_finish() to w.c line 268 just right before exit(0); fixes > that issue (I don't know libxo well enough to say if this is the > proper fix or just a workaround, but it seems logical to me). > % man xo_finish ... Calling this function is vital to the proper operation of libxo, especially for the non-TEXT output styles. ... Note, the word "vital" is underlined in xterm for emphasis. PS: To whomever is responsible for libxo, some (most?) libxo manpages have the wrong NAME information. For example, % man xo_finish LIBXO(3) FreeBSD Library Functions Manual LIBXO(3) NAME xo_emit - emit formatted output based on format string and arguments % man xo_attr LIBXO(3) FreeBSD Library Functions Manual LIBXO(3) NAME xo_emit - emit formatted output based on format string and arguments % man xo_create LIBXO(3) FreeBSD Library Functions Manual LIBXO(3) NAME xo_emit - emit formatted output based on format string and arguments -- Steve