Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling of SIGPIPE #41

Closed
marki555 opened this issue Jul 15, 2014 · 1 comment · Fixed by #63
Closed

Fix handling of SIGPIPE #41

marki555 opened this issue Jul 15, 2014 · 1 comment · Fixed by #63

Comments

@marki555
Copy link

Right now rtl_433 cannot handle SIGPIPE properly - it goes into endless loop caused by fprintf command inside the sighandler() function (each subsequent fprintf creates another SIGPIPE signal).
The fix is easy (I don't know how to create a pull request here), just add this line at the beginning of sighandler() function in rtl_433.c:

   if (signum == SIGPIPE) signal(SIGPIPE, SIG_IGN);
@zerog2k
Copy link
Contributor

zerog2k commented Jul 16, 2014

+1 having this problem too. I think this patches it, at least for linux side. (Cant test windows.)

You can fork this repo, create a feature branch on that repo for the fix, push that back to your repo, and there should be a pull request option when you visit this repo.
https://help.github.com/articles/creating-a-pull-request

rct added a commit to rct/rtl_433 that referenced this issue Nov 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants