Merge pull request #2871 from BOINC/dpa_resume

client: unsuspend jobs before telling them to quit
This commit is contained in:
Kevin Reed 2019-02-26 09:30:55 -06:00 committed by GitHub
commit 3d9538ca78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -194,6 +194,14 @@ static void print_descendants(int pid, vector<int>desc, const char* where) {
// Send a quit message, start timer, get descendants
//
int ACTIVE_TASK::request_exit() {
// unsuspend the process.
// If it's suspended, the timer thread is suspended and
// won't process the quit message
//
if (task_state() == PROCESS_SUSPENDED) {
unsuspend();
}
if (app_client_shm.shm) {
process_control_queue.msg_queue_send(
"<quit/>",