mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-26 11:37:10 +00:00
don't handle SIGPIPE on windows yet
This commit is contained in:
parent
2389ed1f7e
commit
1c85d092b2
@ -1703,13 +1703,17 @@ int main (int argc, char * const * argv){
|
||||
signal(SIGINT, daemon_sigint_handler);
|
||||
// handle SIGTERM - suggested for launchd
|
||||
signal(SIGTERM, daemon_sigint_handler);
|
||||
|
||||
// TODO: win32 variant
|
||||
#ifndef _WIN32
|
||||
// handle SIGPIPE
|
||||
struct sigaction act;
|
||||
act.sa_handler = SIG_IGN;
|
||||
sigemptyset (&act.sa_mask);
|
||||
act.sa_flags = 0;
|
||||
sigaction (SIGPIPE, &act, NULL);
|
||||
|
||||
#endif
|
||||
|
||||
bt_control_t * control = NULL;
|
||||
|
||||
#ifdef HAVE_TRANSPORT_H4
|
||||
|
Loading…
x
Reference in New Issue
Block a user