Changed SIGSTOP to SIGTSTP

This commit is contained in:
lfield 2019-03-06 17:03:13 +01:00
parent 2748016773
commit d1e8a38770
1 changed files with 2 additions and 2 deletions

View File

@ -234,7 +234,7 @@ void suspend_or_resume_descendants(bool resume) {
int pid = getpid();
get_descendants(pid, descendants);
for (unsigned int i=0; i<descendants.size(); i++) {
kill(descendants[i], resume?SIGCONT:SIGSTOP);
kill(descendants[i], resume?SIGCONT:SIGTSTP);
}
#endif
}
@ -247,7 +247,7 @@ void suspend_or_resume_process(int pid, bool resume) {
pids.push_back(pid);
suspend_or_resume_threads(pids, 0, resume, false);
#else
::kill(pid, resume?SIGCONT:SIGSTOP);
::kill(pid, resume?SIGCONT:SIGTSTP);
#endif
}