src/windows/classes/java/lang/ProcessImpl.java

Print this page

        

*** 255,266 **** --- 255,276 ---- return exitValue(); } private static native void waitForInterruptibly(long handle); public void destroy() { terminateProcess(handle); } + public Process destroyForcibly() { + destroy(); + return this; + } private static native void terminateProcess(long handle); + @Override + public boolean isAlive() { + return hasProcessExited(handle); + } + private static native boolean hasProcessExited(long handle); + /** * Create a process using the win32 function CreateProcess. * * @param cmdstr the Windows commandline * @param envblock NUL-separated, double-NUL-terminated list of