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 signal handler #511

Closed
elfring opened this issue Feb 25, 2013 · 12 comments
Closed

Fix signal handler #511

elfring opened this issue Feb 25, 2013 · 12 comments

Comments

@elfring
Copy link

elfring commented Feb 25, 2013

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?

@jonesmz

This comment was marked as abuse.

@jhasse
Copy link
Collaborator

jhasse commented Feb 5, 2020

Too many unanswered questions.

@elfring
Copy link
Author

elfring commented Feb 5, 2020

Would you like to consider other software design options?

@jhasse
Copy link
Collaborator

jhasse commented Feb 5, 2020

I'm not sure what the issue is exactly?

@elfring
Copy link
Author

elfring commented Feb 5, 2020

Do you understand the initial clarification request?

@jhasse
Copy link
Collaborator

jhasse commented Feb 5, 2020

Yeah somewhat. Are we talking about a theoretical problem though or a bug that manifests in the wild because of this?

@jhasse
Copy link
Collaborator

jhasse commented Apr 11, 2024

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.

@jhasse jhasse closed this as completed Apr 11, 2024
@elfring
Copy link
Author

elfring commented Apr 13, 2024

💭 Would more developers become interested to use a development tool like “clang-tidy” for corresponding source code adjustments?

@jhasse
Copy link
Collaborator

jhasse commented Apr 13, 2024

We're using clang-tidy already :)

@elfring
Copy link
Author

elfring commented Apr 13, 2024

Do such source code analysis tools point any remaining issues out for further development considerations? 🤔

@jhasse
Copy link
Collaborator

jhasse commented Apr 13, 2024

We only have a few checks enabled: https://github.com/ninja-build/ninja/blob/master/.clang-tidy
See for example this PR which fixes a check and adds it to the configuration so that we don't regress: #1790

clang-tidy output can be seen here under "clang-tidy": https://github.com/ninja-build/ninja/actions/runs/8658203304/job/23741633637

@elfring
Copy link
Author

elfring commented Apr 14, 2024

We only have a few checks enabled

🔮 Will the support grow for any more adjustment opportunities (besides readability items)?

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

3 participants