
org.zeroturnaround.process.SolarisProcess Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zt-process Show documentation
Show all versions of zt-process Show documentation
A library for stopping external processes from Java.
The newest version!
package org.zeroturnaround.process;
import org.zeroturnaround.exec.InvalidExitValueException;
/**
* Process implementation for Solaris.
*/
public class SolarisProcess extends UnixProcess {
private static final int EXIT_CODE_NO_SUCH_PROCESS = 2;
public SolarisProcess(int pid) {
super(pid);
}
@Override
protected boolean isNoSuchProcess(InvalidExitValueException e) {
return e.getExitValue() == EXIT_CODE_NO_SUCH_PROCESS;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy