Question

I am writing a unit test for a Java program, and I need to simulate a Unix kill. Is there any way that this is possible?

Thanks!

Was it helpful?

Solution

In short, no, there isn't.

On a unix system, the best bet is to use Runtime.exec().

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top