Fix an unreleased lock in the RThreadFunctionRet

Fix an unreleased lock subprocs_mutex in the RThreadFunctionRet.
This commit is contained in:
ryancaicse 2021-09-14 14:15:51 +08:00 committed by pancake
parent c61d187f44
commit ad48d39666

View File

@ -448,6 +448,7 @@ static RThreadFunctionRet sigchld_th(RThread *th) {
}
ut8 r = 0;
if (write (proc->killpipe[1], &r, 1) != 1) {
r_th_lock_leave (subprocs_mutex);
break;
}
}