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

rpicam_vid: handling SIGPIPE to avoid sporadic app termination #637

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

tederer
Copy link
Contributor

@tederer tederer commented Jan 31, 2024

SIGPIPE gets raised when trying to write to an already closed socket. This can happen, when you're using TCP to stream to VLC and the user presses the stop button in VLC. Catching the signal to be able to react on it, otherwise the app terminates.

@naushir
Copy link
Collaborator

naushir commented Jan 31, 2024

Sorry, one final thing... could you wrap the commit message at 72 lines please? If you force push to your branch, this will automatically update the PR.

SIGPIPE gets raised when trying to write to an already closed socket.
This can happen, when you're using TCP to stream to VLC and the user
presses the stop button in VLC. Catching the signal to be able to
react on it, otherwise the app terminates.

Signed-off-by: Thomas Ederer <[email protected]>
@tederer tederer force-pushed the add_sigpipe_handling branch from d064b33 to b7fbac8 Compare January 31, 2024 10:15
@tederer
Copy link
Contributor Author

tederer commented Jan 31, 2024 via email

@naushir
Copy link
Collaborator

naushir commented Jan 31, 2024

Thanks for the fix. Now merging!

@naushir naushir merged commit 3aece53 into raspberrypi:main Jan 31, 2024
10 checks passed
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 this pull request may close these issues.

2 participants