That’s what I did Now it’s working.
The problem seems to be in these lines:
struct task_struct* t;
/* find the task with that pid */
t = pid_task(find_pid_ns(TargetPID, &init_pid_ns), PIDTYPE_PID);
send_sig(SIGINT, t, 0);
One of these functions crashed the module. Since I don’t need them, I don’t care, but maybe you can fix that before sending it to the next guy that also will waste time on that.
Regards,
Simon