fix: dual hold_thread() in do_kill()
This commit is contained in:
@ -1333,7 +1333,6 @@ done:
|
|||||||
if (tthread->status != PS_EXITED &&
|
if (tthread->status != PS_EXITED &&
|
||||||
(sig == SIGKILL ||
|
(sig == SIGKILL ||
|
||||||
(tproc->status != PS_EXITED && tproc->status != PS_ZOMBIE))) {
|
(tproc->status != PS_EXITED && tproc->status != PS_ZOMBIE))) {
|
||||||
hold_thread(tthread);
|
|
||||||
if ((rc = hold_thread(tthread))) {
|
if ((rc = hold_thread(tthread))) {
|
||||||
kprintf("%s: ERROR hold_thread returned %d,tid=%d\n", __FUNCTION__, rc, tthread->tid);
|
kprintf("%s: ERROR hold_thread returned %d,tid=%d\n", __FUNCTION__, rc, tthread->tid);
|
||||||
tthread = NULL;
|
tthread = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user