Hi Mulyadi,<br><br><div class="gmail_quote">On Thu, Jan 19, 2012 at 2:16 PM, Mulyadi Santosa <span dir="ltr"><<a href="mailto:mulyadi.santosa@gmail.com">mulyadi.santosa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Darshan :)<br>
<div class="im"><br>
On Thu, Jan 19, 2012 at 14:03, Darshan Ghumare<br>
<<a href="mailto:darshan.ghumare@gmail.com">darshan.ghumare@gmail.com</a>> wrote:<br>
> Hi Mulyadi,<br>
><br>
> How SIGKILL is handle by Kernel?<br>
> Does SIGKILL & SIGTSTP handled separately than the rest of the signals?<br>
<br>
</div>I hope you don't mind if I cc this answer to kernelnewbies as well.<br>
Hopefully you will get better answer.<br></blockquote><div>No. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Well, SIGKILL is handled like other usual signal. The important point<br>
to notice is that sigkill is handled entirely in kernel space. What it<br>
means is that it cannot be overriden in user space (i.e installing<br>
your own signal handler).<br>
<br>
SIGKILL will tell the target process to terminate itself. So it pretty<br>
much will flow like normal process termination. However, the<br>
termination will be a bit rough. It will just kill....no time to wait<br>
for in flight I/O whatsoever.<br></blockquote><div>What if, there is one process which is in middle of a syscall which has infinite loop in it received SIGKILL & there are no other processes in the system?</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
SIGSTOP...ehm, I think that is handled in kernel space too. The<br>
handler will basically move the process out of from run queue to the<br>
process stopped queue (or something like that, I forgot). Then it<br>
switch the process state from "running" to "stop". It's not the same<br>
like "sleep" btw.<br>
<br>
Hope it helps....<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
regards,<br>
<br>
Mulyadi Santosa<br>
Freelance Linux trainer and consultant<br>
<br>
blog: <a href="http://the-hydra.blogspot.com" target="_blank">the-hydra.blogspot.com</a><br>
training: <a href="http://mulyaditraining.blogspot.com" target="_blank">mulyaditraining.blogspot.com</a><br>
</font></span></blockquote></div><br>