Re: svn commit: r287236 - head/bin/df

2015-08-29 Thread Garrett Cooper
On Aug 28, 2015, at 09:00, Allan Jude allanj...@freebsd.org 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

Re: svn commit: r287236 - head/bin/df

2015-08-28 Thread Garrett Cooper
On Aug 28, 2015, at 00:24, O'Connor, Daniel dar...@dons.net.au wrote: On 28 Aug 2015, at 15:34, Alexey Dokuchaev da...@freebsd.org wrote: On Thu, Aug 27, 2015 at 10:25:28PM -0700, NGie Cooper wrote: On Thu, Aug 27, 2015 at 9:43 PM, Alexey Dokuchaev da...@freebsd.org wrote: On Fri, Aug

Re: svn commit: r287236 - head/bin/df

2015-08-28 Thread Alexey Dokuchaev
On Thu, Aug 27, 2015 at 10:25:28PM -0700, NGie Cooper wrote: On Thu, Aug 27, 2015 at 9:43 PM, Alexey Dokuchaev da...@freebsd.org wrote: On Fri, Aug 28, 2015 at 12:44:59AM +, Xin LI wrote: New Revision: 287236 URL: https://svnweb.freebsd.org/changeset/base/287236 Log: Use exit()

Re: svn commit: r287236 - head/bin/df

2015-08-28 Thread O'Connor, Daniel
On 28 Aug 2015, at 15:34, Alexey Dokuchaev da...@freebsd.org wrote: On Thu, Aug 27, 2015 at 10:25:28PM -0700, NGie Cooper wrote: On Thu, Aug 27, 2015 at 9:43 PM, Alexey Dokuchaev da...@freebsd.org wrote: On Fri, Aug 28, 2015 at 12:44:59AM +, Xin LI wrote: New Revision: 287236 URL:

Re: svn commit: r287236 - head/bin/df

2015-08-28 Thread Xin Li
On 8/27/15 21:43, Alexey Dokuchaev wrote: On Fri, Aug 28, 2015 at 12:44:59AM +, Xin LI wrote: New Revision: 287236 URL: https://svnweb.freebsd.org/changeset/base/287236 Log: Use exit() instead of return in main(). Because?.. Because the explicit exit() have a subtle difference

Re: svn commit: r287236 - head/bin/df

2015-08-28 Thread Warner Losh
On Fri, Aug 28, 2015 at 1:48 AM, Garrett Cooper yaneurab...@gmail.com 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

Re: svn commit: r287236 - head/bin/df

2015-08-28 Thread Allan Jude
On 2015-08-28 03:48, Garrett Cooper wrote: On Aug 28, 2015, at 00:24, O'Connor, Daniel dar...@dons.net.au wrote: On 28 Aug 2015, at 15:34, Alexey Dokuchaev da...@freebsd.org wrote: On Thu, Aug 27, 2015 at 10:25:28PM -0700, NGie Cooper wrote: On Thu, Aug 27, 2015 at 9:43 PM, Alexey Dokuchaev

Re: svn commit: r287236 - head/bin/df

2015-08-28 Thread Alexey Dokuchaev
On Fri, Aug 28, 2015 at 12:00:26PM -0400, Allan Jude wrote: On 2015-08-28 03:48, Garrett Cooper wrote: On Aug 28, 2015, at 00:24, O'Connor, Daniel dar...@dons.net.au wrote: On 28 Aug 2015, at 15:34, Alexey Dokuchaev da...@freebsd.org wrote: On Thu, Aug 27, 2015 at 10:25:28PM -0700, NGie

Re: svn commit: r287236 - head/bin/df

2015-08-28 Thread John Baldwin
On Friday, August 28, 2015 07:05:06 AM Conrad Meyer wrote: On Fri, Aug 28, 2015 at 1:36 AM, Xin Li delp...@delphij.net wrote: And then later assign a block of memory allocated from heap to it: p = malloc(size); Since p is in function scope, upon return, it's gone. If there is

Re: svn commit: r287236 - head/bin/df

2015-08-27 Thread Alexey Dokuchaev
On Fri, Aug 28, 2015 at 12:44:59AM +, Xin LI wrote: New Revision: 287236 URL: https://svnweb.freebsd.org/changeset/base/287236 Log: Use exit() instead of return in main(). Because?.. ./danfe ___ svn-src-all@freebsd.org mailing list

Re: svn commit: r287236 - head/bin/df

2015-08-27 Thread NGie Cooper
On Thu, Aug 27, 2015 at 9:43 PM, Alexey Dokuchaev da...@freebsd.org wrote: On Fri, Aug 28, 2015 at 12:44:59AM +, Xin LI wrote: New Revision: 287236 URL: https://svnweb.freebsd.org/changeset/base/287236 Log: Use exit() instead of return in main(). Because?.. Probably because of

svn commit: r287236 - head/bin/df

2015-08-27 Thread Xin LI
Author: delphij Date: Fri Aug 28 00:44:58 2015 New Revision: 287236 URL: https://svnweb.freebsd.org/changeset/base/287236 Log: Use exit() instead of return in main(). MFC after:2 weeks Modified: head/bin/df/df.c Modified: head/bin/df/df.c