diff options
Diffstat (limited to 'c/sig.c')
| -rw-r--r-- | c/sig.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -0,0 +1,13 @@ +#include <stdio.h> +#include <signal.h> +//#include <unistd.h> + +void handlesig36(int sig) { + printf("received signal %d\n", sig); +} + +int main() { + signal(SIGRTMIN+2, handlesig36); + //while (1); + return 0; +} |
