Sign in
llvm
/
llvm-project
/
e8391d46198aa1390c1bcaff94de42eed34ae26b
/
.
/
lldb
/
test
/
Shell
/
Register
/
Core
/
Inputs
/
tkill.cpp
blob: 677bd3e6cf4937e4c46de49c75c635d32d0e15d3 [
file
] [
log
] [
blame
]
#include
<signal.h>
#include
<sys/syscall.h>
int
main
()
{
// Get the current thread ID
pid_t
tid
=
syscall
(
SYS_gettid
);
// Send a SIGSEGV signal to the current thread
syscall
(
SYS_tkill
,
tid
,
SIGSEGV
);
return
0
;
}