mirror of https://github.com/BOINC/boinc.git
Merge pull request #2871 from BOINC/dpa_resume
client: unsuspend jobs before telling them to quit
This commit is contained in:
commit
3d9538ca78
|
@ -194,6 +194,14 @@ static void print_descendants(int pid, vector<int>desc, const char* where) {
|
||||||
// Send a quit message, start timer, get descendants
|
// Send a quit message, start timer, get descendants
|
||||||
//
|
//
|
||||||
int ACTIVE_TASK::request_exit() {
|
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) {
|
if (app_client_shm.shm) {
|
||||||
process_control_queue.msg_queue_send(
|
process_control_queue.msg_queue_send(
|
||||||
"<quit/>",
|
"<quit/>",
|
||||||
|
|
Loading…
Reference in New Issue