Hi! I have a kernel thread that creates a socket and waits for incoming data (recvmsg). It is in a while(1) loop. I want to continuously get some data and then operate on it. When the machine is reboot'ed, or shutdown, the kernel thread just starts receiving some (invalid) data, and loops forever... it never exits. How do I set up a KILL or TERM signal handler, so that after getting these signals, the thread exits instead of waiting for more data? TIA --- - Amit http://amitshah.nav.to/ amitshah@gmx.net -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/