mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
269 B
15 lines
269 B
#include <signal.h>
|
|
#include <stdint.h>
|
|
#include "syscall.h"
|
|
#include "pthread_impl.h"
|
|
|
|
int raise(int sig)
|
|
{
|
|
int tid, ret;
|
|
sigset_t set;
|
|
__block_app_sigs(&set);
|
|
tid = __syscall(SYS_gettid);
|
|
ret = syscall(SYS_tkill, tid, sig);
|
|
__restore_sigs(&set);
|
|
return ret;
|
|
}
|
|
|