Sign in
llvm
/
llvm-project
/
ba767d0bbbde4107700ff66ecfd97eb75d85a35d
/
.
/
lldb
/
test
/
Shell
/
Register
/
Core
/
Inputs
/
tkill.cpp
blob: 677bd3e6cf4937e4c46de49c75c635d32d0e15d3 [
file
]
#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
;
}