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

Handling Interrupt Signals: C and C++ example use different approach #799

Open
franzhollerer opened this issue Mar 19, 2020 · 1 comment

Comments

@franzhollerer
Copy link
Contributor

Related: #798

The C and C++ example in the section Handling Interrupt Signals use a different approaches on how to shut down the application. The deviation is more than just writing the same algorithm in a different programming languages.

The C++ example sets the global variable s_interrupted as described in the text, while the C example uses a pipe instead.

To avoid confusion I think the examples should stick to the same method across all programming languages - as far as it make sense for the given programming language.

@sappo
Copy link
Member

sappo commented Mar 19, 2020 via email

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

No branches or pull requests

2 participants