Community
Participate
Working Groups
When org.eclipse.debug.core.model.RuntimeProcess.terminate() is called, only the wrapped java.long.Process is destroyed. Sub-processes created by the wrapped process are left untouched. This can cause bad situations if, for example a created sub-process locks any kind of resources and continues running after the main-process has terminated. Prior Java-9 finding all sub-process (descendents) of a process was not possible with the Java standard library. Since the extension of the Process API in Java-9 the Process class provides the method Process.descendants() to get a stream of all sub-processes (and their sub-process, recursively). This can be used to fetch all sub-processes prior termination and to destroy them after the main-process. I can provide a patch if you are interested. If I see it correctly the affected org.eclipse.debug.core plug-in still requires Java-8. So this has to be updated first. But because since Eclipse 4.17/2020-09 Java-11 is required to run Eclipse, this should be possible. This a generalization of Bug 77082
Yes, the plugin can move to 11 compliance. Please provide a gerrit.
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.debug/+/169905
I submitted a commit to Gerrit containing the bug-fix and the move to Java-11. When terminated a RuntimeProcess could also wait for the descendants to terminate. But since ProcessHandle has not waitFor() method it could only be done by polling ProcessHandle.isAlive(). Do you think is is acceptable? Or should RuntimeProcess simply not wait for descendants? For the Java version migration I just replaced all version entries. When this is done via the Java Build-Path section in the projects preference-Editor some more entries are added. Maybe somebody else has to evaluate this.
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.debug/+/169938
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.debug/+/170009
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.debug/+/169905 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.debug.git/commit/?id=355226e13346a6516ee74541e993be37ad7622ba
Thanks Hannes for the contribution.
*** Bug 77082 has been marked as a duplicate of this bug. ***
I missed the another work in progress gerrit.
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.debug/+/169938 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.debug.git/commit/?id=62040c7c8752e3e22237790276e423a43a17765d
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.debug/+/170009 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.debug.git/commit/?id=9223452bf28e2ec766da65d4530e6e0921c90548
(In reply to Sarika Sinha from comment #9) > I missed the another work in progress gerrit. Which are now merged as well. Thanks Hannes.
@Hannes, Please add an entry to N&N as we need to inform the users that we have changed the termination method.
@Sarika Sure I can do that, but I don't know how. Can you please give me some guidance.
(In reply to Hannes Wellmann from comment #14) > @Sarika > Sure I can do that, but I don't know how. Can you please give me some > guidance. This is the repository: www.eclipse.org/eclipse/news.git Entry will go in Platform Debug Category. You will find Instructions.html helpful.
New Gerrit change created: https://git.eclipse.org/r/c/www.eclipse.org/eclipse/news/+/172644
Thanks for the instructions, I just submitted an entry for the platform.html. I hope it is suitable.
Gerrit change https://git.eclipse.org/r/c/www.eclipse.org/eclipse/news/+/172644 was merged to [master]. Commit: http://git.eclipse.org/c/www.eclipse.org/eclipse/news.git/commit/?id=f80036074ca0c907321779a608380fe0228d380c
(In reply to Hannes Wellmann from comment #17) > Thanks for the instructions, I just submitted an entry for the platform.html. > I hope it is suitable. Thanks!
(In reply to Eclipse Genie from comment #11) > Gerrit change > https://git.eclipse.org/r/c/platform/eclipse.platform.debug/+/170009 was > merged to [master]. > Commit: > http://git.eclipse.org/c/platform/eclipse.platform.debug.git/commit/ > ?id=9223452bf28e2ec766da65d4530e6e0921c90548 This one caused severe regression, see bug 569750 :-(.