I can't say there is enough in the text below to advise you. If you think there is a bug, you could create a failing uni test that anyone watching this list could try to debug or review.... no guarantees though. If there is a bug in the library, then that's a different iissue ;-)
Gary On Sun, Aug 13, 2023, 8:34 AM Mohd. Rizwan Ansari <rizzwan.ansa...@gmail.com> wrote: > Hi guys, > I was using apache commons exec to run a child process(worker) from a > parent process(agent). agent takes care of monitoring(start,stop,restore) > worker..and it works great. > Now my use case is to connect to already running worker...and not start a > new one, when the agent is restarted. > Im creating a class ExistingProcess.java which extends Process, and in > waitFor() it's waiting until it keeps finding a cmd process running with by > its ID, which normally works but for connecting to an already running > worker...it's throwing Exception. > Ideas on what I may be missing? or alternative ways to achieve the same. > Thanks, >