URL:
<http://savannah.gnu.org/bugs/?29435>
Summary: fd_is_cloexec () does not work on Fedora buildhosts
Project: findutils
Submitted by: jay
Submitted on: Sun 04 Apr 2010 10:58:02 AM GMT
Category: find
Severity: 4 - Important
Item Group: Test suite failure
Status: In Progress
Privacy: Public
Assigned to: jay
Originator Name: Kamil Dudka
Originator Email: [email protected]
Open/Closed: Open
Discussion Lock: Any
Release: 4.5.7
Fixed Release: None
_______________________________________________________
Details:
While I was trying to build packages for Fedora, I ran into huge test-suite
failure. For merely all tests the assertion within complain_about_leaky_fds
() failed on the descriptor 3 or 4.
Poking around, I discovered the function fd_is_cloexec () does not work
there. As it seems to be kernel specific, I haven't been able to reproduce
it locally.
Here is a minimal example:
int main()
{
const int fd = open(".", O_RDONLY|O_CLOEXEC);
if (-1 == fd)
return EXIT_FAILURE;
const int flags = fcntl(fd, F_GETFD);
printf("fcntl(%d, F_GETFD) = 0x%x\n", fd, flags);
return EXIT_SUCCESS;
}
The call of fnctl () returns 0x0 on the buildhost.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?29435>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/