I need to create many child processes using the clone() function. I have to use "Busy waiting" to wait for the change of some shared variables.
How can I kill this child process once I know that I won't use it anymore?
thanks
How can I kill this child process once I know that I won't use it anymore?
kill
to send this child process a fatal signal, unless you used CLONE_THREAD
- in that case see nm's comment.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.