-
Notifications
You must be signed in to change notification settings - Fork 316
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
SIGTERM and SIGHUP handling #78
Comments
Commit 15a3686 makes sure SIGTERM is handled the same way as SIGINT, including not disabling these signals for future threads on MacOS X. But why should we do that? Any clue why the SIGINT signal was not disabled for future threads on MacOS X in the first place? |
@paolo-losi I'm a little rusty on signals... Why should SIGHUP be ignored? So that openfortivpn is not killed when the terminal from which it was started from is closed? |
exactly for that reason. There are two sensible choices for openfortivpn:
I would favour the second choice. BTW thanks for your patch |
Commit DimitriPapadopoulos/openfortivpn@e05a912 should make sure SIGHUP is ignored. |
@DimitriPapadopoulos from my perspective we can land #134 now. |
@mrbaseman I agree, but of course someone else than me needs to land it. |
Handle SIGTERM as SIGINT and ignore SIGHUP, merging into master (as we have agreed in #78)
I have just landed #134 |
I think SIGTERM should be handled as SIGINT is handled
SIGHUP should be ignored
The text was updated successfully, but these errors were encountered: