How can I suspend and resume a subprocess that I started as a QProcess in Qt? Is there a Qt function for that, or if not, a platform-specific one that would work on Linux?
Since I'm on linux, I used the kill() function.
#include <signal.h>
...
kill(process->pid(), SIGSTOP); // suspend
kill(process->pid(), SIGCONT); // resume
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.