Class SpawnProcess.ExitStatus
java.lang.Object
com.kosdev.kos.core.service.spawn.SpawnProcess.ExitStatus
- Enclosing class:
- SpawnProcess
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturn the exit code for the process if it exited normally.intReturn the signal code that terminated the process if it exited abnormally.booleanReturns true if the process exited due to a signal (sigterm, sigfault, etc...) instead of a normal exit callingexit().booleanReturns true if the process exited normally by callingexit(), or false if the process exited due to a signal (sigterm, sigfault, etc...).
-
Constructor Details
-
ExitStatus
public ExitStatus()
-
-
Method Details
-
isNormalExit
public boolean isNormalExit()Returns true if the process exited normally by callingexit(), or false if the process exited due to a signal (sigterm, sigfault, etc...). This is the opposite ofisAbnormalExit().If this is true,
exitCoderepresents the value the program passed toexit().- Since:
- 10
-
getExitCode
public int getExitCode()Return the exit code for the process if it exited normally. This is the value the program passed toexit().- Since:
- 10
-
isAbnormalExit
public boolean isAbnormalExit()Returns true if the process exited due to a signal (sigterm, sigfault, etc...) instead of a normal exit callingexit(). This is the opposite ofisNormalExit().If this is true,
signalNumrepresents the linux signal number that caused the program to exit.- Since:
- 10
-
getSignalNum
public int getSignalNum()Return the signal code that terminated the process if it exited abnormally.- Since:
- 10
-