views:

211

answers:

0

After switching from Ubuntu to CentOS 5.4 we came across a strange GDB behavior. Running application in debugger causes sem_wait() to return several (5-10) times with EINTR error. I installed the latest GDB version but it did not solve the problem. I suppose this is cause by some signal sent by GDB but I could not get any info in signal handler. Testing errno after sem_wait() and resuming waiting is not a big deal, I just wanted to know if anybody has an explanation for this phenomenon.

Thanks.