From fbd8d57a7838792176f82668d7c43b3af411d438 Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Tue, 13 Oct 2026 15:23:12 +0100 Subject: [PATCH] tart run: allow standard input/output/error FDs for --net-fd --- Sources/tart/Network/Softnet.swift | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Sources/tart/Network/Softnet.swift b/Sources/tart/Network/Softnet.swift index 9684e53..712d6e9 100644 --- a/Sources/tart/Network/Softnet.swift +++ b/Sources/tart/Network/Softnet.swift @@ -55,10 +55,6 @@ class Softnet: Network { } static func validateControlFD(_ fd: Int32, type: Int32 = SOCK_STREAM) throws { - guard fd > STDERR_FILENO else { - throw RuntimeError.Generic("must be greater than 2") - } - var socketType: Int32 = 0 var socketTypeLength = socklen_t(MemoryLayout.size) guard getsockopt(fd, SOL_SOCKET, SO_TYPE, &socketType, &socketTypeLength) == 0 else {