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

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

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 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 no > > oth

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 wrote: > >>> On 28 Aug 2015, at 15:34, Alexey Dokuchaev wrote: > On Thu, Aug 27, 2015 at 10:25:28PM -0700, NGie Cooper wrote: > > >>>

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 wrote: >> >>> On 28 Aug 2015, at 15:34, Alexey Dokuchaev 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 > wrote: >>>

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

2015-08-28 Thread Conrad Meyer
On Fri, Aug 28, 2015 at 1:36 AM, Xin Li wrote: > > > 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(). >>

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

2015-08-28 Thread Warner Losh
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 > initializi

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 d

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

2015-08-28 Thread Garrett Cooper
> On Aug 28, 2015, at 00:24, O'Connor, Daniel wrote: > >> On 28 Aug 2015, at 15:34, Alexey Dokuchaev 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 wrote: > On Fri, Aug 28, 2015 at 12:44:59AM +, Xin L

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

2015-08-28 Thread O'Connor, Daniel
> On 28 Aug 2015, at 15:34, Alexey Dokuchaev 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 wrote: >>> On Fri, Aug 28, 2015 at 12:44:59AM +, Xin LI wrote: New Revision: 287236 URL: https://svnweb.freebsd.or

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

2015-08-27 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 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-27 Thread NGie Cooper
On Thu, Aug 27, 2015 at 9:43 PM, 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?.. Probably because of libxo... _

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-head@freebsd.org mailing list htt

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