>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? Have a look at: http://www.scs.ch/~frey/linux/kernelthreads.html or the oprofile.c file in OProfile source code. Swapnil. -- 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/