Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-31-2015, 07:10 AM   #1
LQ Newbie
Registered: Jan 2015
Posts: 1

Rep: Reputation: Disabled
How to read the signal queue of a process??


I am not completely new to linux.

My problem is the following:

The signal queue of my process gets filled with time.

With /proc/PID/status --> SigQ 6032/6032 i can see that the queue is full!

And my software is waiting on signals to process data. So I want to know wich signal filled my queue and I am interested to see the attached data of the signal --> sival_int or sival_ptr, I use sigwaitinfo() to read the data.
Old 01-31-2015, 10:14 AM   #2
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060
Take a look at the manual page for signal, noting that you should avoid using it in favor of sigaction instead. There is some good background information in the page, however, making it worth a read.

At the bottom of the page, in the SEE ALSO section which lists the utilities and library functions having to do with signal that are also worth a read (and, of course, check the SEE ALSO sections of those manual pages).

Don't forget to read the sigaction manual page (and the SEE ALSO there).

Signals fall in the realm of black magic in many ways -- not as many as the IPC functions do but weirdness is the norm.

The sigaltstack() function may be of the most interest for your question.

Hope this helps some.


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
squid: ERROR: Could not send signal 0 to process 17211: (3) No such process OIF1veteran Linux - Software 3 04-18-2013 01:27 PM
Sending Signal from Child Process to Parent Process : Not getting desired output thelink123 Linux - General 4 10-26-2012 10:05 PM
signal interrupts reading from queue aral Programming 2 10-10-2006 09:24 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03: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