Unix/Linux: Handler of SIGCONT/SIGTSTP
问题 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! 回答1: These functions would be kernel