-
Notifications
You must be signed in to change notification settings - Fork 39
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
Unable to stop an application with ctrl+c with handleQuitSignals #925
Comments
This is really tricky and dangerous. I was wondering if you are using library which carch the ctrl-c. Cc @traversaro |
Can you check if the lambda is getting called or not? Can you provide more context of how the |
Yes I am calling it from a I have verified that when clicking |
Are you able to provide a minimum example like a main wirh an empty synchronous thread running |
Here it is:
With
Indeed this is working as expected. I should understand what could be the cause in my more advanced use case. |
It could be that either
Just to understand, how did you verify this? |
I have written a cpp application which spawns 2 threads. Each thread is running an
advanceable runner
.I am trying to use the
BipedalLocomotion::System::handleQuitSignals
to implement the logic that should stop the application when clickingctrl+C
.It follows the portion of the application related to this logic:
What happens is that when clicking
ctrl+c
most of the times the application does not get stopped.The text was updated successfully, but these errors were encountered: