Skip to content

Commit

Permalink
rtl_fm, power: stay open through broken pipes
Browse files Browse the repository at this point in the history
  • Loading branch information
keenerd committed Aug 14, 2014
1 parent 3cb8bd6 commit 08889ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rtl_fm.c
Expand Up @@ -1345,6 +1345,7 @@ int main(int argc, char **argv)
sigaction(SIGTERM, &sigact, NULL);
sigaction(SIGQUIT, &sigact, NULL);
sigaction(SIGPIPE, &sigact, NULL);
signal(SIGPIPE, SIG_IGN);
#else
SetConsoleCtrlHandler( (PHANDLER_ROUTINE) sighandler, TRUE );
#endif
Expand Down
1 change: 1 addition & 0 deletions src/rtl_power.c
Expand Up @@ -905,6 +905,7 @@ int main(int argc, char **argv)
sigaction(SIGTERM, &sigact, NULL);
sigaction(SIGQUIT, &sigact, NULL);
sigaction(SIGPIPE, &sigact, NULL);
signal(SIGPIPE, SIG_IGN);
#else
SetConsoleCtrlHandler( (PHANDLER_ROUTINE) sighandler, TRUE );
#endif
Expand Down

0 comments on commit 08889ee

Please sign in to comment.