Some of the functions in my kernel module can sleep, for these functions I
have following code
if (signal_pending(current))
{
set_current_state(TASK_RUNNING);
*errno = EINTR;
return(something);
}
The problem is that even if I do ctrl-Z on the key board, abouve code
returns and user process stops.
What is the correct way of handling this ? should I check for specified
signals, e.g. man 7 signal says that following signal should kill the
process and some of them shuold also do core
SIGHUP
SIGINT
SIGQUIT
SIGILL
SIGABRT
SIGFPE
SIGKILL
SIGSEGV
SIGPIPE
SIGALRM
SIGTERM
SIGUSR1
SIGUSR2
_________________________________________________________________
Don?t just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/