This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: libc/1320: pthread_cond_timedwait returns EINTR in multithreaded processes when gdb is attached to them
- To: aj at arthur dot rhein-neckar dot de
- Subject: Re: libc/1320: pthread_cond_timedwait returns EINTR in multithreaded processes when gdb is attached to them
- From: "George T. Talbot" <george at moberg dot com>
- Date: Fri, 24 Sep 1999 10:06:45 -0400
- CC: gdb at sourceware dot cygnus dot com, greg at surety dot com, libc-alpha at soucrceware dot cygnus dot com
- Organization: Moberg Research, Inc.
- References: <938174950.18621.ezmlm@sourceware.cygnus.com>
You might also want to look at sem_wait(). It will return, when GDB is
attached, but it won't return EINTR, so there's no way to loop on EINTR
and ignore the event. Makes it really hard to attach the debugger to a
program that uses semaphores.
--
George T. Talbot
<george@moberg.com>