MCPcopy Create free account
hub / github.com/clementgallet/libTAS / removeSocket

Function removeSocket

src/shared/sockethelpers.cpp:57–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55static std::mutex mutex;
56
57int removeSocket(void) {
58 int ret = unlink(SOCKET_FILENAME);
59 if ((ret == -1) && (errno != ENOENT))
60 return errno;
61 return 0;
62}
63
64#ifndef LIBTAS_LIBRARY
65bool initSocketProgram(pid_t fork_pid)

Callers 1

initMethod · 0.85

Calls 1

unlinkFunction · 0.85

Tested by

no test coverage detected