From owner-svn-src-all@freebsd.org Fri Aug 28 13:25:21 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 18C199C31C2 for ; Fri, 28 Aug 2015 13:25:21 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk0-f180.google.com (mail-qk0-f180.google.com [209.85.220.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C87F5112F for ; Fri, 28 Aug 2015 13:25:20 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by qkbm65 with SMTP id m65so27804972qkb.2 for ; Fri, 28 Aug 2015 06:25:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=jZmxynMNpriK64nKHmLX0nDOPtGFtqE6cEMkaixcq90=; b=aZqX5GMA5JDE8gYS/qQv4lD7pLTSS8DCA8c9rEg2t1E9m2XhVmPej79dUlQ+IQRa7s P4C2i1NAAWmNWt0OnH+A4zi97Imf1Yt+mG4OOzmbwwZqcWrQfdcyDIhpQU8CdHH3bznK IiIRoE9uODTnk5kiJnqJxKePs9ZobceyXm3zo2yITFD4rGvD+DyjjWGQa6qBbjHhr3Ae OJv0pKPvzmKyMpAL+hwD9MZqk+KcI6WHZza7ZY4bTbDcMfZuIhos4UNGRn/8kYa6NAEf H8sRkHtNI27BJDS3EVbLav9RK1UT1lZ0QfOjk5Ueum2NJ14zpVyjnT17NGOuTMzIVrFB u05Q== X-Gm-Message-State: ALoCoQmiRFljLn/brh3gKXDKE9095QGc5mtDXkE0CxhI+Or7As365uiFpkxYzPsvuddU91If8VI+ MIME-Version: 1.0 X-Received: by 10.55.201.198 with SMTP id m67mr15786271qkl.35.1440768314535; Fri, 28 Aug 2015 06:25:14 -0700 (PDT) Sender: wlosh@bsdimp.com Received: by 10.140.91.52 with HTTP; Fri, 28 Aug 2015 06:25:14 -0700 (PDT) X-Originating-IP: [50.253.99.174] In-Reply-To: References: <201508280044.t7S0ixfW038766@repo.freebsd.org> <20150828044312.GA88538@FreeBSD.org> <20150828060458.GA20642@FreeBSD.org> Date: Fri, 28 Aug 2015 07:25:14 -0600 X-Google-Sender-Auth: 2N2DnkUBxd5fm32UA3wPhWZM4Ko Message-ID: Subject: Re: svn commit: r287236 - head/bin/df From: Warner Losh To: Garrett Cooper Cc: "O'Connor, Daniel" , Alexey Dokuchaev , "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" , Xin LI Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Aug 2015 13:25:21 -0000 On Fri, Aug 28, 2015 at 1:48 AM, Garrett Cooper wrote: > > Libxo (iirc) doesn't install atexit handlers, which means that you need to > use exit (or a reason facsimile) in order for it to flush its file streams. > > This is unintuitive though. I wish it did the right thing as part of > initializing the streams.. > Ummm, stdio streams are flushed if you return from main() too. If it has internal buffered data it hasn't delivered to stdio yet and hasn't installed atexit handlers, how on earth can it flush anything when you call exit(). Warner