terminationStatus
The exit status the receiver’s executable returns.
Declaration
var terminationStatus: Int32 { get }Return Value
The exit status returned by the receiver’s executable.
Discussion
Each task defines and documents how your app should interpret the return value. For example, many commands return 0 if they complete successfully or an error code if they don’t. You’ll need to look at the documentation for that task to learn what values it returns under what circumstances.
This method raises an NSInvalidArgumentException if the receiver is still running. Verify that the receiver isn’t running before you use it.