pub fn statusToTerm(status: u32) process.Child.Term
pub fn statusToTerm(status: u32) process.Child.Term { return if (posix.W.IFEXITED(status)) .{ .exited = posix.W.EXITSTATUS(status) } else if (posix.W.IFSIGNALED(status)) .{ .signal = posix.W.TERMSIG(status) } else if (posix.W.IFSTOPPED(status)) .{ .stopped = posix.W.STOPSIG(status) } else .{ .unknown = status }; }