Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Kernel call and Signals: (1 Item)
   
Kernel call and Signals  
Hello Everyone, 

How will a kernel call handle a signal directed to its calling process? Will the kernel call complete its execution, 
return to the calling process at which point the signal is handled? Will the kernel call return EINTR in the event a 
signal occurs in mid-execution?

How will a function such as mmap, munmap, or msync handle a signal directed to the calling process? My understanding is 
these function calls are not actual kernel calls but rather are implemented as message passes to the kernel. So:
-	Will the function call (such as msync()) be interrupted by a signal mid-execution?
-	Or alternatively will the call complete its execution?
In either case, when the process becomes READY again, will the function call return EINTR? 

Fundamentally I’d like to know in which scenario the function call will complete before handling the signal versus when
 the function call will be interrupted.

Thank you and Regards,
Eric