Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

linux thread suspended by real-time signal when running in eclipse

A simple linux multi-thread program. In one of the threads, i start a timer,and the timer will send SIGRTMIN to to this thread.

when debug with eclipse gdb, the thread will always be suspended by SIGRTMIN,after resume, the program goes well.

out of eclipse gdb,everything goes well. Anybody can help?

like image 587
sinopec Avatar asked Sep 04 '12 14:09

sinopec


1 Answers

problem solved. create a .gdbinit file in home directory. and add the folloing line

handle SIG34 nostop noprint pass

this makes gdb ignore SIG-xx real-time signals

like image 165
sinopec Avatar answered Nov 13 '22 20:11

sinopec