uti: Call do_exit when tracer isn't working and do_syscall returned -ERESTARTSYS

This commit is contained in:
Masamichi Takagi
2018-02-23 10:22:16 +09:00
parent af7f61db49
commit 124ec580a0

View File

@ -9136,6 +9136,13 @@ util_thread(struct uti_attr *arg)
do_syscall(&request, ihk_mc_get_processor_id(), 0);
do_exit(rc);
}
} else if (rc == -ERESTARTSYS) {
/* tracer is not working and /dev/mcosX has detected exit of mcexec process */
kprintf("%s: release_handler,pid=%d,tid=%d,rc=%lx\n", __FUNCTION__, thread->proc->pid, thread->tid, rc);
thread->proc->nohost = 1;
do_exit(rc);
} else {
kprintf("%s: unknown error (%ld)\n", __FUNCTION__, rc);
}
return rc;
}