'kill' to kernel thread

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux