I'm currently writting program using signals, and I've got this trouble:
How can I change state of executing program to stopped/running without sending SIGSTOP
/SIGCONT
?
I understand, that I need to use:
void add_to_runqueue (struct task_struct * p)
and
void del_from_runqueue (struct task_struct * p)
but how to obtain structure task_struct of currently running process?
Also: if it is all that I need to do (calling those 2 functions).
Thanks in advance!