-   Programming (
-   -   sigsuspend problem (

vprakas 03-28-2006 07:59 AM

sigsuspend problem
I am facing a problem relating to suspension of some threads/processes. Once entered into sigsuspend it won't resume from that.

Its happening at 4/5 different places more often in our code.

here is an example gdb output
(gdb) bt
#0 0x0fe9fb3c in sigsuspend () from /lib/
#1 0x0fe0409c in pthread_getconcurrency () from /lib/
#2 0x0fe03884 in pthread_create () from /lib/
#3 0x0ffd364c in shm_unlink () from /lib/
#4 0x0ffd2218 in timer_create () from /lib/

Let me know how to solve this problem.


sundialsvcs 03-29-2006 01:41 AM

Remember that sigsuspend puts the thread to sleep for signals that will arrive in the future. If the signal was not previously blocked (sigprocmask), and it happened before you waited for it, you won't get it.

Carefully review the entire set of signal-handling routines available and see if you're really using the right one for your intended application. (sigwaitinfo?)

All times are GMT -5. The time now is 10:53 PM.