PP4J icon indicating copy to clipboard operation
PP4J copied to clipboard

How to kill a process?

Open brainbytes42 opened this issue 2 years ago • 0 comments

For me, one reason to use separate processes, is to be able to terminate them, for example if they are running too long or aren't responding anymore. The child-processe's code isn't always behaving wrt. thread interrupts, so I need to have the big gun and kill the process.

In PP4J it seems to be possible in AbstractProcessExecutor, but for the JavaProcessPool, I don't see any chance to get there... Cancelling the returned Future doesn't have any effect on the process.

brainbytes42 avatar May 03 '23 09:05 brainbytes42