source:
roaraudio/roard/signals.c
@
382:46b315ef4767
Last change on this file since 382:46b315ef4767 was 250:9ca4ed9eda94, checked in by phi, 16 years ago | |
---|---|
File size: 234 bytes |
Line | |
---|---|
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 | |
12 | void on_sig_chld (int signum) { |
13 | ROAR_DBG("got SIGCHLD"); |
14 | |
15 | wait(NULL); |
16 | |
17 | signal(SIGCHLD, on_sig_chld); |
18 | } |
19 | |
20 | |
21 | //ll |
Note: See TracBrowser
for help on using the repository browser.