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

SIGHUP #77

Open
o11c opened this issue Dec 1, 2016 · 0 comments
Open

SIGHUP #77

o11c opened this issue Dec 1, 2016 · 0 comments

Comments

@o11c
Copy link

o11c commented Dec 1, 2016

Whenever a terminal emulator is closed, the foreground process group gets a SIGHUP. If one of those processes is bash (or another shell), it then sends a new SIGHUP to all non-disowned jobs (== process groups).

For a program like GearHead, this should be handled as a graceful (but non-prompting) exit, rather than the default action (terminate without dumping core).

However, in case the event loop is not responsive, the program should still terminate - e.g. by calling alarm(5) in the signal handler.

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

1 participant