Lines Matching refs:LockFile
250 static char LockFile[PATH_MAX]; variable
277 if (len > sizeof(LockFile)) in LockServer()
280 (void) sprintf(LockFile, "%s" LOCK_PREFIX "%s" LOCK_SUFFIX, tmppath, port); in LockServer()
323 haslock = (link(tmp, LockFile) == 0); in LockServer()
334 lfd = open(LockFile, O_RDONLY | O_NOFOLLOW); in LockServer()
337 FatalError("Can't read lock file %s\n", LockFile); in LockServer()
344 unlink(LockFile); in LockServer()
361 unlink(LockFile); in LockServer()
372 LockFile, "\tand start again."); in LockServer()
378 FatalError("Could not create server lock file: %s\n", LockFile); in LockServer()
394 (void) unlink(LockFile); in UnlockServer()