MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / subprocess_fd_is_closed

Function subprocess_fd_is_closed

tests/test_subprocess.c:1329–1331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

test_subprocess.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected