Re: signals

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signals are checked whenever process returns from kernel mode to user 
mode. If there are any non-blocking pending signals, then they are 
handled at that time.

See the ret_from_intr code.

There is no restriction in writing Signal Handlers AFAIK.

Signal Handlers are User-mode code, so the execution mode is changed to 
User-mode before execution.

HTH
Regds
Ketan

Anjaneyulu wrote:
> Hi,
> 
> I would like to know when the signal handler will be executed on 
> reception of a signal.
> 
>  
> 
> What happens to the process (which installed the signal handler) 
> execution context????
> 
>  
> 
> Can anyone specify what all can be performed in a signal handler????
> 
>  
> 
> Thanks in advance.
> 
>  
> 
> Regards,
> 
> Anj
> 


-- 

"Only the paranoid survives." --- Andy Grove

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux