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

Use SIGKILL to kill help server #912

Merged
merged 2 commits into from
Dec 15, 2021

Conversation

renkun-ken
Copy link
Member

@renkun-ken renkun-ken commented Dec 13, 2021

What problem did you solve?

Closes #902
Closes #911

kill() from tree-kill package does not seem to work properly on Linux and macOS. I tested using cp.kill() SIGKILL signal and it works as expected on Windows, Linux and macOS.

(If you do not have screenshot) How can I check this pull request?

  1. Open an R file
  2. Open a task manager or watch -d 'ps aux | grep helpServer.R'
  3. Reload vscode window
  4. Exit vscode

The helpServer process should be properly killed on reload or exit. At most only one help server should appear at any time.

@renkun-ken renkun-ken changed the title Use cp.kill to kill help server Use SIGKILL to kill help server Dec 13, 2021
@renkun-ken renkun-ken merged commit 1ce8ee2 into REditorSupport:master Dec 15, 2021
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.

helpServer never exits on reload window helpServer.R processes leaking in code-server
1 participant