MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / closeDirectLogFiledes

Function closeDirectLogFiledes

src/debug.cpp:1646–1649  ·  view source on GitHub ↗

Used to close what closeDirectLogFiledes() returns. */

Source from the content-addressed store, hash-verified

1644
1645/* Used to close what closeDirectLogFiledes() returns. */
1646void closeDirectLogFiledes(int fd) {
1647 int log_to_stdout = g_pserver->logfile[0] == '\0';
1648 if (!log_to_stdout) close(fd);
1649}
1650
1651void safe_write(int fd, const void *pv, ssize_t cb)
1652{

Callers 2

logStackTraceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected