LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 03-28-2006, 07:59 AM   #1
vprakas
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/libc.so.6
#1 0x0fe0409c in pthread_getconcurrency () from /lib/libpthread.so.0
#2 0x0fe03884 in pthread_create () from /lib/libpthread.so.0
#3 0x0ffd364c in shm_unlink () from /lib/librt.so.1
#4 0x0ffd2218 in timer_create () from /lib/librt.so.1


Let me know how to solve this problem.

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

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


Reply


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 06:08 PM.

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