posix semaphores not working under gdb
Kenny Simpson
theonetruekenny@yahoo.com
Thu Dec 1 07:55:00 GMT 2005
One thing that caused me some pain a while ago is the semaphore behavioral change in NPTL vs
LinuxThreads. Under LinuxThreads, sem_wait will never return until the semaphore is aquired.
With NPTL, sem_wait can return EINTR
... and DOES when gdb attaches.
The man pages in many distrubutions still have the old LinuxThreads documentation which explictly
states that sem_wait will not be affected by signals.
Hope this helps...
-Kenny
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
More information about the Gdb
mailing list