             let p = _process!
             p.waitUntilExit()
             let exitStatusCode = p.terminationStatus
+            let normalExit = p.terminationReason == .exit
           #else
             var exitStatusCode: Int32 = 0
             var result = waitpid(processID, &exitStatusCode, 0)

                arguments: arguments,
                environment: environment,
                exitStatusCode: exitStatusCode,
                output: stdoutResult,
                stderrOutput: stderrResult
            )

            switch result.exitStatus {
            case .terminated(let code):
                stream <<< "terminated(\(code)): "
#if os(Windows)
            case .abnormal(let exception):
                stream <<< "abnormal(\(exception)): "
#else
            case .signalled(let signal):
                stream <<< "signalled(\(signal)): "
#endif
