         // nil or NullDevice maps to NUL
         case let handle as FileHandle where handle === FileHandle._nulldeviceFileHandle: fallthrough
         case .none:
-            siStartupInfo.hStdOutput = try devNullHnd()
+            siStartupInfo.hStdOutput = try devNullFd()
 
         case let handle as FileHandle:
             siStartupInfo.hStdOutput = handle.handle

        // nil or NullDevice maps to NUL
        case let handle as FileHandle where handle === FileHandle._nulldeviceFileHandle: fallthrough
        case .none:
            siStartupInfo.hStdInput = try devNullHnd()

        case let handle as FileHandle:
            siStartupInfo.hStdInput = handle.handle

        // nil or NullDevice maps to NUL
        case let handle as FileHandle where handle === FileHandle._nulldeviceFileHandle: fallthrough
        case .none:
            siStartupInfo.hStdError = try devNullFd()

        case let handle as FileHandle:
            siStartupInfo.hStdError = handle.handle
