Added check of nohost to terminate_host().

Change-Id: I796a0d98b68783dad6ce04b3a80ca01db8f8eee2
Fujitsu: POSTK_DEBUG_TEMP_FIX_103
This commit is contained in:
Shiratori, Takehiro
2018-11-29 15:55:06 +09:00
committed by Dominique Martinet
parent 452d93f14d
commit 49353e252b

View File

@ -1437,9 +1437,15 @@ terminate_host(int pid)
proc = find_process(pid, &lock);
if(!proc)
return;
proc->nohost = 1;
process_unlock(proc, &lock);
do_kill(cpu_local_var(current), pid, -1, SIGKILL, NULL, 0);
if (proc->nohost != 1) {
proc->nohost = 1;
process_unlock(proc, &lock);
do_kill(cpu_local_var(current), pid, -1, SIGKILL, NULL, 0);
}
else {
process_unlock(proc, &lock);
}
}
void eventfd(int type)