fix: dual hold_thread() in do_kill()

This commit is contained in:
Ken Sato
2018-03-19 11:12:50 +09:00
parent e2dea4e9f8
commit ce3af4734a

View File

@ -1333,7 +1333,6 @@ done:
if (tthread->status != PS_EXITED &&
(sig == SIGKILL ||
(tproc->status != PS_EXITED && tproc->status != PS_ZOMBIE))) {
hold_thread(tthread);
if ((rc = hold_thread(tthread))) {
kprintf("%s: ERROR hold_thread returned %d,tid=%d\n", __FUNCTION__, rc, tthread->tid);
tthread = NULL;