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
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
* 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