MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / close_fd

Function close_fd

src/python/runner.cpp:866–874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

864 static std::atomic<int> g_repl_write_fd{-1};
865
866 static void close_fd(int fd) {
867 if (fd < 0)
868 return;
869#ifdef _WIN32
870 _close(fd);
871#else
872 ::close(fd);
873#endif
874 }
875
876 void start_embedded_repl(int read_fd, int write_fd) {
877 stop_embedded_repl();

Callers 2

start_embedded_replFunction · 0.70
stop_embedded_replFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected