Re: [PATCH] Apply bugfixes and suggestions from Eric's comments.

2010-03-30 Thread James Youngman
On Tue, Mar 30, 2010 at 2:45 PM, Eric Blake wrote: > But this is still the right thing to do, so it is only a misleading > comment in the commit log. In the end I opted to support O_CREAT, with the attached patch. James. From 4968d14544e0dc1a0519d3bbdefbcf8027f5c3ab Mon Sep 17 00:00:00 2001 From

Re: [PATCH] Apply bugfixes and suggestions from Eric's comments.

2010-03-30 Thread Eric Blake
On 03/29/2010 06:23 PM, James Youngman wrote: > * configure.ac: Check for and the getrusage > function. > * lib/fdleak.c: Don't #include if we don't have it. > (get_max_fd): If neither /proc/self/fd not getrusage is available, > return _POSIX_OPEN_MAX. > (remember_non_cloexec_fds): Also check for

[PATCH] Apply bugfixes and suggestions from Eric's comments.

2010-03-29 Thread James Youngman
* configure.ac: Check for and the getrusage function. * lib/fdleak.c: Don't #include if we don't have it. (get_max_fd): If neither /proc/self/fd not getrusage is available, return _POSIX_OPEN_MAX. (remember_non_cloexec_fds): Also check for leaks in file descriptors 0, 1, 2, just in case the calle