Commit | Line | Data |
---|---|---|
21c4e167 H |
1 | #include <stdio.h> |
2 | #include <signal.h> | |
3 | ||
4 | static void alrm_handler(int signo) { | |
5 | alarm(1); | |
6 | printf("LOL!\n"); | |
7 | } | |
8 | ||
9 | int main(int argc, char *argv[]) { | |
10 | ||
11 | //signal(SIGALRM, &alrm_handler); | |
12 | //alarm(1); | |
13 | ||
14 | while(1) { | |
15 | sleep(1); | |
16 | printf("."); | |
17 | } | |
18 | ||
19 | } |