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

Hosted plugin - Add support of killing sub treads in Linux run by shell script #7391

Merged
merged 1 commit into from
Mar 25, 2020

Conversation

idantr
Copy link
Contributor

@idantr idantr commented Mar 22, 2020

Signed-off-by: Idan Treivish idan.treivish@sap.com

What it does

Kills Linux sub treads started by shell script link

How to test

  1. Docker with Linux
  2. Create yarn sh script that internally calls yarn
  3. Insert your yarn folder first in PATH
    PATH should be updated before you start theia
    then you can reproduce the issue in local docker
    and the test is before and after

Review checklist

Reminder for reviewers

@idantr idantr changed the title Hosted plugin - Add support of killing sub treads run by shell script Hosted plugin - Add support of killing sub treads in Linux run by shell script Mar 22, 2020
@amiramw amiramw requested a review from benoitf March 23, 2020 07:57
@akosyakov akosyakov added the plug-in system issues related to the plug-in system label Mar 23, 2020
@akosyakov akosyakov requested a review from amiramw March 23, 2020 08:12
Signed-off-by: Idan Treivish <idan.treivish@sap.com>
@amiramw
Copy link
Member

amiramw commented Mar 24, 2020

Tested this PR compared to master in gitpod. It seems that step 2 is not needed as yarn is implemented as sh script already. Without this fix hosted theia leaks those watch processes:
image

With this change everything under yarn watch is killed properly.

@amiramw amiramw merged commit e6d6b9a into eclipse-theia:master Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plug-in system issues related to the plug-in system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants