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

Ignore SIGINT sent to an interactive repl server #1570

Merged
merged 1 commit into from
Jul 4, 2014

Conversation

trptcolin
Copy link
Collaborator

Unfortunately, even though *pump-in* is false, the server subprocess still gets the SIGINT when you hit <ctrl-c>. REPLy used to take care of that by registering a handler itself, but it's a ClassLoader leak, as
discussed in trptcolin/reply#127, so I removed it. But now subprocess servers crash instead of gracefully being interrupted.

Here we're careful only to register the process in the specific case where we're responsible for both the input and the server.

Pro: REPLy clients avoid classloader leaks.
Con: All REPLy clients have to implement this same sort of handling, but only (?) if they're running in a subprocess.

Unfortunately, even though *pump-in* is false, the server subprocess
still gets the SIGINT when you hit <ctrl-c>. REPLy used to take care of
that by registering a handler itself, but it's a ClassLoader leak, as
discussed in trptcolin/reply#127, so I removed it. But now subprocess
servers crash instead of gracefully being interrupted.

Here we're careful only to register the process in the specific case
where we're responsible for both the input and the server.

Pro: REPLy clients avoid classloader leaks.
Con: All REPLy clients have to implement this same sort of handling, but
only (?) if they're running in a subprocess.
technomancy added a commit that referenced this pull request Jul 4, 2014
…ocess

Ignore SIGINT sent to an interactive repl server
@technomancy technomancy merged commit 8789001 into master Jul 4, 2014
@technomancy
Copy link
Owner

Thanks for catching this.

@technomancy technomancy deleted the ignore_sigint_in_repl_subprocess branch July 4, 2014 17:23
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