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

Add SIGINT signal handlers for Windows #3167

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

Ace314159
Copy link
Contributor

This makes ctrl+c more reliable at actually killing the process.

@Ace314159
Copy link
Contributor Author

Is there anything else I should do to get this PR merged?

@Ace314159
Copy link
Contributor Author

@j-rivero I'd really appreciate a review, thank you!

@j-rivero
Copy link
Contributor

Hey @Ace314159, sorry for the radio silence. I was looking into yes, code changes looks good to me but I don't have a working Windows environment these days. I'm going to approve but let's wait until someone can verify that indeed improves the runtime shutdown.

Thanks for the contribution!

@traversaro traversaro closed this Sep 30, 2022
@traversaro traversaro reopened this Sep 30, 2022
@traversaro
Copy link
Collaborator

I restarted the CI to check if the failure were flaky.

@Ace314159
Copy link
Contributor Author

Do you think the failures are caused by my changes? I'm having trouble actually looking at the failing tests. Most of them just say that the test didn't run.

@talregev
Copy link
Contributor

talregev commented Oct 4, 2023

Can you rebase to the latest gazebo11 dev branch?

@Ace314159
Copy link
Contributor Author

@talregev I've rebased

@talregev
Copy link
Contributor

talregev commented Oct 5, 2023

@traversaro Can you review it?

@traversaro
Copy link
Collaborator

@traversaro Can you review it?

Sure, as @j-rivero mentioned it would be nice to verify that this indeed improve the ctrl+c behavior on Windows. @talregev did you tested this improvements yourself? If yes, I think we can proceed.

@talregev
Copy link
Contributor

talregev commented Oct 6, 2023

@Ace314159 Can you record your screen while you press ctrl+c and post it here? I will also try to do it when I have time and post it here.

@talregev
Copy link
Contributor

talregev commented Oct 10, 2023

@traversaro I build gazebo with vcpkg for x86 on this branch, and I can confirm that when I press crtl+c, it close all windows immediately.
I am using windows 11.

@traversaro Let me know what do you think.

2023-10-10.09.11.33.mp4

@traversaro
Copy link
Collaborator

Perfect, thanks! I will wait two days for anyone else to comment, then I will merge. Feel free to ping then, thanks!

@talregev
Copy link
Contributor

@traversaro gentle ping about this PR.

@traversaro traversaro merged commit 391c4f2 into gazebosim:gazebo11 Oct 12, 2023
8 of 10 checks passed
@traversaro
Copy link
Collaborator

Thanks!

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.

4 participants