source:
roaraudio/roard/signals.c
@
358:e7d0dbe62299
Last change on this file since 358:e7d0dbe62299 was 250:9ca4ed9eda94, checked in by phi, 16 years ago | |
---|---|
File size: 234 bytes |
Rev | Line | |
---|---|---|
[0] | 1 | //signals.c: |
2 | ||
3 | #include "roard.h" | |
4 | ||
5 | void on_sig_int (int signum) { | |
6 | ROAR_DBG("got SIGINT"); | |
7 | ||
8 | alive = 0; | |
9 | clean_quit(); | |
10 | } | |
11 | ||
[249] | 12 | void on_sig_chld (int signum) { |
13 | ROAR_DBG("got SIGCHLD"); | |
14 | ||
15 | wait(NULL); | |
[250] | 16 | |
17 | signal(SIGCHLD, on_sig_chld); | |
[249] | 18 | } |
19 | ||
20 | ||
[0] | 21 | //ll |
Note: See TracBrowser
for help on using the repository browser.