[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


                 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



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);

The call of fnctl () returns 0x0 on the buildhost.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]