This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
re: posix semaphores not working under gdb
- From: Kenny Simpson <theonetruekenny at yahoo dot com>
- To: daniel dot juan at gmail dot com
- Cc: gdb at sourceware dot org
- Date: Wed, 30 Nov 2005 23:55:11 -0800 (PST)
- Subject: re: posix semaphores not working under gdb
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