[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #29435] fd_is_cloexec () does not work on Fedora buildhosts
From: |
James Youngman |
Subject: |
[bug #29435] fd_is_cloexec () does not work on Fedora buildhosts |
Date: |
Sun, 04 Apr 2010 10:58:03 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.7 Safari/533.2 |
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: address@hidden
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/
- [bug #29435] fd_is_cloexec () does not work on Fedora buildhosts,
James Youngman <=