From owner-svn-src-head@freebsd.org Fri Aug 28 13:25:21 2015 Return-Path: Delivered-To: svn-src-head@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 0A6BB9C31C1 for ; Fri, 28 Aug 2015 13:25:21 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk0-f179.google.com (mail-qk0-f179.google.com [209.85.220.179]) (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 BE2DB112E for ; Fri, 28 Aug 2015 13:25:20 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by qkbm65 with SMTP id m65so27804969qkb.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=N5SCfmdPZgX4zyTD0SkrUZknJYpzr+NnsOnneiasXMhhnOl8cd1FwRtJvXTwZHhg8A yYUInQic5Z8Rq2gaD3gzkktHjaUKHyyzyesjRoWwYWl8lvQbQdkvOjxExt26EJ7wFKpL GHxDOlG9+/pplFMKTGU8s0mAyG44OkiL+yLcSC2kZPeGIUNB7Qr4pLwcMHkKgA0rZXIG vy0/Z5eGdqylHfmRLAyg64vNG7yBWo35ZNDphPNmnNd61BVBYzWZp+rQthrUfo7P7kCU X+pdzna4gg8ZGUtoz4JqAqQFi5tfDxPj9VhDUnQ87OpjjSzkmdzBoyjh9x1yeCZJjSdM Sg9Q== X-Gm-Message-State: ALoCoQllz4pnDEhJmNZeMqydH4uVgetOSz+vkggS5INXPxq9ftTKJ4nE9WYc78g6RZ+pF1jCW6PB 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-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current 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