-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 signal handler #511
Comments
This comment was marked as abuse.
This comment was marked as abuse.
Too many unanswered questions. |
Would you like to consider other software design options? |
I'm not sure what the issue is exactly? |
Do you understand the initial clarification request? |
Yeah somewhat. Are we talking about a theoretical problem though or a bug that manifests in the wild because of this? |
If someone wants to fix this, feel free to open a PR. But it looks like a theoretical problem to me, so I'll close this for now. |
💭 Would more developers become interested to use a development tool like “clang-tidy” for corresponding source code adjustments? |
We're using clang-tidy already :) |
Do such source code analysis tools point any remaining issues out for further development considerations? 🤔 |
We only have a few checks enabled: https://github.com/ninja-build/ninja/blob/master/.clang-tidy clang-tidy output can be seen here under "clang-tidy": https://github.com/ninja-build/ninja/actions/runs/8658203304/job/23741633637 |
🔮 Will the support grow for any more adjustment opportunities (besides readability items)? |
I find the use of the variable "SubprocessSet::interrupted_" questionable because of the data type "bool". I recommend to change its data type to "sig_atomic_t".
I suggest also to reconsider the implementation detail about the use of "SetInterruptedFlag" and "NotifyInterrupted" as static member functions for the intended purpose. Does the class "SubprocessSet" need a different design for portable signal handling?
The text was updated successfully, but these errors were encountered: