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

SIGTERM and SIGHUP handling #78

Closed
paolo-losi opened this issue Nov 30, 2016 · 7 comments
Closed

SIGTERM and SIGHUP handling #78

paolo-losi opened this issue Nov 30, 2016 · 7 comments

Comments

@paolo-losi
Copy link

I think SIGTERM should be handled as SIGINT is handled
SIGHUP should be ignored

@DimitriPapadopoulos
Copy link
Collaborator

DimitriPapadopoulos commented May 29, 2017

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?

@DimitriPapadopoulos
Copy link
Collaborator

@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?

@paolo-losi
Copy link
Author

exactly for that reason.

There are two sensible choices for openfortivpn:

  • handle sighup as INT/TERM
  • ignore it

I would favour the second choice.

BTW thanks for your patch

@DimitriPapadopoulos
Copy link
Collaborator

Commit DimitriPapadopoulos/openfortivpn@e05a912 should make sure SIGHUP is ignored.

@mrbaseman
Copy link
Collaborator

@DimitriPapadopoulos from my perspective we can land #134 now.

@DimitriPapadopoulos
Copy link
Collaborator

@mrbaseman I agree, but of course someone else than me needs to land it.

mrbaseman added a commit that referenced this issue Jun 6, 2017
Handle SIGTERM as SIGINT and ignore SIGHUP, merging into master (as we have agreed in #78)
@mrbaseman
Copy link
Collaborator

I have just landed #134

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