Sign in
android
/
platform
/
external
/
musl
/
3ea3fcf78a5532e118856846df8adbf3f60ef716
/
.
/
src
/
signal
/
raise.c
blob: f0512019a1921eea797ac84252fd4fd01e3d6d7a [
file
] [
log
] [
blame
]
#include
<signal.h>
#include
<stdint.h>
#include
"syscall.h"
#include
"pthread_impl.h"
int
raise
(
int
sig
)
{
sigset_t
set
;
__block_app_sigs
(&
set
);
int
ret
=
syscall
(
SYS_tkill
,
__pthread_self
()->
tid
,
sig
);
__restore_sigs
(&
set
);
return
ret
;
}