source: roaraudio/roard/signals.c @ 249:3cd9fc3de838

Last change on this file since 249:3cd9fc3de838 was 249:3cd9fc3de838, checked in by phi, 16 years ago

added wait() an SIGCHLD

File size: 202 bytes
Line 
1//signals.c:
2
3#include "roard.h"
4
5void on_sig_int (int signum) {
6 ROAR_DBG("got SIGINT");
7
8 alive = 0;
9 clean_quit();
10}
11
12void on_sig_chld (int signum) {
13 ROAR_DBG("got SIGCHLD");
14
15 wait(NULL);
16}
17
18
19//ll
Note: See TracBrowser for help on using the repository browser.