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

Cleanup and exit on SIGCHLD #3

Merged
merged 2 commits into from
Jul 6, 2018
Merged

Cleanup and exit on SIGCHLD #3

merged 2 commits into from
Jul 6, 2018

Conversation

fhunleth
Copy link
Owner

@fhunleth fhunleth commented Jul 5, 2018

This fixes an issue where nbtty would never exit even when Erlang exited. This only appears to happen on Nerves. On desktop Linux, the tty appears to get closed before SIGCHLD is handled so this code is unnecessary there.

The tty file descripter doesn't close on Nerves so nbtty doesn't exit.
This change handles SIGCHLD so that if the child dies, nbtty goes away
as well.

Additional cleanup was added to reduce noise with erlinit messages.
@fhunleth fhunleth merged commit 8ed39d9 into master Jul 6, 2018
@fhunleth fhunleth deleted the close_child branch July 6, 2018 02:16
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

Successfully merging this pull request may close these issues.

2 participants