exitCode

abstract var exitCode: Double(source)

The exit code of the process, unless reason is launch-failed, in which case exitCode will be a platform-specific launch failure error code.