[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

stopping a process temporarily



Hello,

I need to stop a process temporarily from the context of a different process.

I can't send it SIGKILL, I need to stop it _temporarily_. 
I can't send it SIGSTOP (I think); if the process is being ptrace'd the parent
will get control, not what we want.

I suspect we should be able to achieve this by fiddling with task->state bits
but not sure, especially considering that the target process could be in
any state (running/blocked/readytorun ...) when we want to do this.

Any ideas/help greatly appreciated.

Thanks,
-- 

Vamsi Krishna S.
Linux Technology Center,
IBM Software Lab, Bangalore.
Ph: +91 80 5262355 Extn: 3959
Internet: vamsi@in.ibm.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/