<div dir="ltr"><div>I want to write a module which will spawn two kthreads where kthread-1 will send signal X to kthread-2 and kthread-2 has registered a signal handler to catch signal X. When the signal X is caught by kthread-2, it will execute its signal handler.<br><br></div><div>Just am exploring signal handing and its intricacies, so thought of this exercise. Is it possible ?<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 14, 2015 at 6:10 PM, Pranay Srivastava <span dir="ltr"><<a href="mailto:pranjas@gmail.com" target="_blank">pranjas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, Aug 14, 2015 at 5:38 PM, KASHISH BHATIA<br>
<<a href="mailto:kashish.bhatia1989@gmail.com">kashish.bhatia1989@gmail.com</a>> wrote:<br>
><br>
> Is it possible to send signal from one kthread to another kthread using signal apis defined in signal.h and signal.c. Also I want to override the default behavior of a signal handler. How can I achieve this ?<br>
><br>
</span>You probably want to do a "notify?" i think. Care to elaborate more<br>
on what exactly you are trying to do? If it's information you need to<br>
pass between 2 kthreads then signal handling is not a good idea there<br>
are other mechanisms you can use.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
><br>
> --<br>
><br>
> Regards,<br>
> Kashish Bhatia<br>
><br>
> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
><br>
<br>
<br>
<br>
--<br>
---P.K.S<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><br>Regards,<div style="color:rgb(153,153,153)">Kashish Bhatia </div></div>
</div>