source: roaraudio/roard/signals.c @ 250:9ca4ed9eda94

Last change on this file since 250:9ca4ed9eda94 was 250:9ca4ed9eda94, checked in by phi, 16 years ago

reset SIGCHLD signal-handler in signal-handler

File size: 234 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 signal(SIGCHLD, on_sig_chld);
18}
19
20
21//ll
Note: See TracBrowser for help on using the repository browser.