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

Function posix_lock_exclusive

src/daemon/service.c:509–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507}
508
509static bool posix_lock_exclusive(int fd) {
510 while (flock(fd, LOCK_EX) != 0) {
511 if (errno != EINTR) {
512 return false;
513 }
514 }
515 return true;
516}
517
518static int posix_log_file_open(const posix_log_path_t *path, struct stat *status_out,
519 bool *created_out) {

Callers 1

posix_log_appendFunction · 0.85

Calls 1

flockClass · 0.85

Tested by

no test coverage detected