about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/signal/raise.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/signal/raise.c b/src/signal/raise.c
index 35063c5b..717b1c91 100644
--- a/src/signal/raise.c
+++ b/src/signal/raise.c
@@ -5,12 +5,11 @@
 
 int raise(int sig)
 {
-	int pid, tid, ret;
+	int tid, ret;
 	sigset_t set;
 	__block_app_sigs(&set);
 	tid = __syscall(SYS_gettid);
-	pid = __syscall(SYS_getpid);
-	ret = syscall(SYS_tgkill, pid, tid, sig);
+	ret = syscall(SYS_tkill, tid, sig);
 	__restore_sigs(&set);
 	return ret;
 }