Catch signal from userspace to kernel space
Hi
I am a newbie and I was wondering how to handle a signal send to a process using my kernel module driver. I programmed a char driver, so to test it, I used both the commands echo and cat, this works fine but the problem is that when the cat command blocks (for this case I used the wait_queue)waiting for new data to read. The problem is that I can't kill the process (I used kill command and Ctrl-C). So how can I handle a signal in my module ?
Thanks in advance.
|