You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for a great piece of code!
There is only couple of problems:
You seem to forget to copy the sa_flags=0 initialization from the Qt example.
In my case it leads to not restoring the handler after the first call, time to time.
I am not sure why did Qt people use sigemptyset in the original example.
Possibly, they wanted to add the signals later with sigaddset, but forgot about it.
Anyway, now your handler is not protected from any signal to arrive during its
execution. I doubt it's the desired effect.
The text was updated successfully, but these errors were encountered:
Thanks for a great piece of code!
There is only couple of problems:
In my case it leads to not restoring the handler after the first call, time to time.
Possibly, they wanted to add the signals later with sigaddset, but forgot about it.
Anyway, now your handler is not protected from any signal to arrive during its
execution. I doubt it's the desired effect.
The text was updated successfully, but these errors were encountered: