This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/2745] mutex with ERRORCHECK attribute fails to unlock on child after fork


------- Additional Comments From rdabrowa at poczta dot onet dot pl  2006-06-10 08:21 -------
I have a clue: see "RATIONALE" section of "pthread_atfork" specification in:

   http://www.opengroup.org/onlinepubs/009695399/functions/pthread_atfork.html

We can read there:
    "The expected usage is that the prepare handler acquires all mutex locks and
the other two fork handlers release them."

But this does not work with glibc, because unlocking mutex from "child" handler
fails.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |


http://sourceware.org/bugzilla/show_bug.cgi?id=2745

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]