On Fri, 2005-05-27 at 08:37, Nivedan Nigam wrote: > > Hi all, > > i have written a kernel module to implement a new routing protocol. it > is working fine. i am facing a small problem in catching signal in my > module. > > Actually i have to catch SIGPWR signal in my module, so that if this > signal triggers then i'll get to know that POWER is gone and i hv to > broadcast a CONTROL PACKET in the network.. Isn't SIGPWR only sent to init? The proper thing to do as far as I know would be to update the /etc/init.d/powerfail script to call a user mode program that will broadcast the packet. You shouldn't need to do that from a kernel module. Hope that helps, Bob Bennett > my problem is, how to catch the signal and process it. i want to call > a routine node_status_change(.....) when SIGPWR triggers... > > can anybody will help me to come out from this problem.... > > ne suggestion is welcome > > Thanx in advance > > Nivedan Nigam > MTech CSE > IIT Guwahati > India > > > > > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/