1

When does a process handle a signal

view story
linux-howto

http://stackoverflow.com – I want to know when does a linux process handles the signal. Assuming that the process has installed the signal handler for a signal, I wanted to know when would the process's normal execution flow be interrupted and signal handler called. According to http://www.tldp.org/LDP/tlk/ipc/ipc.html, the process would handle the signal when it exits from a system call. This would mean that a normal instruction like a = b+c (or its equivalent machine code) would not be interrupted because of signal. Also, there are system calls which would get interrupted (and fail with EINTR or get restarted) up (HowTos)