문제

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!

도움이 되었습니까?

해결책

In short, no, there isn't.

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top