| 1327 | * loop is the bug. The ENOSYS-injected leg proves the fallback still closes. */ |
| 1328 | #ifndef _WIN32 |
| 1329 | static bool subprocess_fd_is_closed(int fd) { |
| 1330 | return fcntl(fd, F_GETFD) == -1 && errno == EBADF; |
| 1331 | } |
| 1332 | |
| 1333 | static cbm_fd_close_strategy_t subprocess_expected_close_strategy(void) { |
| 1334 | #if defined(__linux__) && defined(SYS_close_range) |