LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-01-2010, 09:51 AM   #1
pradeep_zenith
LQ Newbie
 
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
Signal handling in Linux


Hi guys,
I know the basic concepts of signals and signal handling. Now, suppose, I register a handler for signal by using sigaction api, So who calls the signal handler? is it Kernel? If it is so, then does the signal handler execute in kernel context? And if I make any blocking call (say read) in handler, does it means that the kernel will be blocked?

Thanks,
Pradeep
 
Old 02-01-2010, 10:01 AM   #2
carbonfiber
Member
 
Registered: Sep 2009
Location: Sparta
Posts: 237

Rep: Reputation: 46
(simplified) The process that has registered the signal handler will execute it when it (the process) receives the respective signal.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to reinstall a signal handler after exec ( Strange behaviour in signal handling ) lali.p Programming 0 09-20-2008 12:11 PM
Signal and process handling in linux Alpha_Beta_Gamma Linux - General 1 09-07-2007 09:34 PM
Signal handling in C scoban Programming 2 12-18-2006 12:54 AM
Signal handling......... rajsun Programming 2 06-28-2005 08:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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