Skip to content

Use ProcessHandle instead of shell script to check for parent process#1753

Merged
fbricon merged 1 commit into
eclipse-lemminx:mainfrom
datho7561:use-process-handle
Feb 3, 2026
Merged

Use ProcessHandle instead of shell script to check for parent process#1753
fbricon merged 1 commit into
eclipse-lemminx:mainfrom
datho7561:use-process-handle

Conversation

@datho7561

@datho7561 datho7561 commented Sep 9, 2025

Copy link
Copy Markdown
Contributor

See #1025

@datho7561
datho7561 requested a review from fbricon September 9, 2025 13:15
@fbricon

fbricon commented Sep 9, 2025

Copy link
Copy Markdown
Contributor

Code LGTM, but I haven't tested it. @datho7561 have you?

@datho7561

Copy link
Copy Markdown
Contributor Author

I made sure it still runs as normal, but I haven't tried killing the parent process manually yet, I should do that...

@angelozerr

Copy link
Copy Markdown
Contributor

What about binary? Is it working?

@datho7561

Copy link
Copy Markdown
Contributor Author

I made sure that lemminx starts up properly, then closed all VS Code abnormally (killall -9 code), and ensured that eventually the lemminx process stopped. I did this for the java version and the binary on Linux.

@datho7561
datho7561 requested a review from fbricon September 9, 2025 14:27
datho7561 added a commit to datho7561/quarkus-ls that referenced this pull request Sep 9, 2025
See eclipse-lemminx/lemminx#1753

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/quarkus-ls that referenced this pull request Sep 9, 2025
See eclipse-lemminx/lemminx#1753

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to redhat-developer/quarkus-ls that referenced this pull request Sep 9, 2025
See eclipse-lemminx/lemminx#1753

Signed-off-by: David Thompson <davthomp@redhat.com>
@fbricon
fbricon merged commit 3fbd2fc into eclipse-lemminx:main Feb 3, 2026
4 of 6 checks passed
@fbricon

fbricon commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

Thanks @datho7561!

@datho7561
datho7561 deleted the use-process-handle branch February 3, 2026 13:17
@datho7561 datho7561 added this to the 0.31.1 milestone Feb 3, 2026
@datho7561 datho7561 added the debt This issue or enhancement is related to technical debt label Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

debt This issue or enhancement is related to technical debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants