LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 03-27-2012, 01:28 AM   #1
qinqin
LQ Newbie
 
Registered: Dec 2011
Posts: 7

Rep: Reputation: Disabled
Question send_sig_info() question: Missing signal?


Hi all,

I am writing a driver which sends signal from kernel to user space process.

I am using send_sig_info() from kernel and I am using real time signal (e.g., signal number = SIGRTMIN+2). In user space, I am using sigaction() to register the signal handler to this signal.

The issue I am seeing right now is that sometimes (randomly) even send_sig_info() returns successfully, my user space signal handler is not being called.

Could you please give some hints what could be the issue?
 
Old 03-27-2012, 03:10 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,854

Rep: Reputation: 161Reputation: 161
You can't assume real-time signal is no lost in Linux domain. The real-time signal can sometime be lost. If the signal deliver so quickly and application doesn't handle them, the signal could be ignored.
 
Old 03-27-2012, 04:38 PM   #3
qinqin
LQ Newbie
 
Registered: Dec 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by nini09 View Post
You can't assume real-time signal is no lost in Linux domain. The real-time signal can sometime be lost. If the signal deliver so quickly and application doesn't handle them, the signal could be ignored.
Thanks for the reply. Could you please be more specific on "If the signal deliver so quickly and application doesn't handle them, the signal could be ignored". Do you mean the queue for RT signal is full and signal is dropped? Is there way to check the status of the queue?
 
Old 03-28-2012, 02:35 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,854

Rep: Reputation: 161Reputation: 161
When queue is full, it doesn't always return error code. Only special signal return error code.
 
  


Reply



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
Missing incoming gpio signal pulses on imx27 using linux jayhorizon Programming 3 11-06-2010 03:30 PM
How to reinstall a signal handler after exec ( Strange behaviour in signal handling ) lali.p Programming 0 09-20-2008 12:11 PM
signal handling question fox_hound_33 Programming 4 05-28-2008 03:19 AM
signal() question. JanusPaul Programming 6 12-03-2004 09:42 AM
Question about Signal set beginner16 Programming 5 01-17-2004 08:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:17 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration