Lines 191-198
sigcancel_handler(int sig __unused,
Link Here
|
191 |
struct pthread *curthread = _get_curthread(); |
191 |
struct pthread *curthread = _get_curthread(); |
192 |
int err; |
192 |
int err; |
193 |
|
193 |
|
194 |
if (THR_IN_CRITICAL(curthread)) |
194 |
curthread->sigcancel_cnt++; |
|
|
195 |
if (THR_IN_CRITICAL(curthread)) { |
196 |
curthread->sigcancel_crit_cnt++; |
195 |
return; |
197 |
return; |
|
|
198 |
} |
196 |
err = errno; |
199 |
err = errno; |
197 |
check_suspend(curthread); |
200 |
check_suspend(curthread); |
198 |
check_cancel(curthread, ucp); |
201 |
check_cancel(curthread, ucp); |