This is the mail archive of the libc-alpha@sourceware.cygnus.com 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]

Re: libc/1320: pthread_cond_timedwait returns EINTR in multithreaded processes when gdb is attached to them


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>

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