summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cff4b91)
assuming signals are blocked, which they are here, the tid in the
thread structure is always valid and cannot change out from under us.
sigset_t set;
__block_app_sigs(&set);
sigset_t set;
__block_app_sigs(&set);
- tid = __syscall(SYS_gettid);
- ret = syscall(SYS_tkill, tid, sig);
+ int ret = syscall(SYS_tkill, __pthread_self()->tid, sig);
__restore_sigs(&set);
return ret;
}
__restore_sigs(&set);
return ret;
}