source:
azure_iot_hub/trunk/musl-1.1.18/src/signal/raise.c
Last change on this file was 389, checked in by , 5 years ago | |
---|---|
|
|
File size: 269 bytes |
Line | |
---|---|
1 | #include <signal.h> |
2 | #include <stdint.h> |
3 | #include "syscall.h" |
4 | #include "pthread_impl.h" |
5 | |
6 | int raise(int sig) |
7 | { |
8 | int tid, ret; |
9 | sigset_t set; |
10 | __block_app_sigs(&set); |
11 | tid = __syscall(SYS_gettid); |
12 | ret = syscall(SYS_tkill, tid, sig); |
13 | __restore_sigs(&set); |
14 | return ret; |
15 | } |
Note:
See TracBrowser
for help on using the repository browser.