Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 03-28-2006, 07:59 AM   #1
LQ Newbie
Registered: Mar 2006
Posts: 1

Rep: Reputation: 0
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.

Old 03-29-2006, 01:41 AM   #2
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,720

Rep: Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294
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?)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM

All times are GMT -5. The time now is 05:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration