musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/signal/raise.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/signal/raise.c')
-rw-r--r--src/signal/raise.c 4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/signal/raise.c b/src/signal/raise.c
index 717b1c91..f0512019 100644
--- a/src/signal/raise.c
+++ b/src/signal/raise.c
@@ -5,11 +5,9 @@
int raise(int sig)
{
- int tid, ret;
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;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月05日 16:30:32 +0000

AltStyle によって変換されたページ (->オリジナル) /