mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-05 09:40:00 +00:00
removed alternative commented code
This commit is contained in:
parent
d1c3f5e5b0
commit
438751df71
@ -274,16 +274,12 @@ int main (int argc, const char * argv[]){
|
||||
signal(SIGINT, daemon_sigint_handler);
|
||||
// handle SIGTERM - suggested for launchd
|
||||
signal(SIGTERM, daemon_sigint_handler);
|
||||
#if 0
|
||||
// avoid crashing on closed socket
|
||||
signal(SIGPIPE, daemon_sigpipe_handler);
|
||||
#else 0
|
||||
// handle SIGPIPE
|
||||
struct sigaction act;
|
||||
act.sa_handler = SIG_IGN;
|
||||
sigemptyset (&act.sa_mask);
|
||||
act.sa_flags = 0;
|
||||
sigaction (SIGPIPE, &act, NULL);
|
||||
#endif
|
||||
|
||||
// make stderr unbuffered
|
||||
setbuf(stderr, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user