Searched refs:fdlock (Results 1 – 2 of 2) sorted by relevance
100 int fdlock; member573 svd[0].fdlock = xopen3("log/supervise/lock"+4, in runsv_main()575 if (flock(svd[0].fdlock, LOCK_EX | LOCK_NB) == -1) in runsv_main()577 close_on_exec_on(svd[0].fdlock); in runsv_main()597 svd[1].fdlock = xopen3("log/supervise/lock", in runsv_main()599 if (flock(svd[1].fdlock, LOCK_EX) == -1) in runsv_main()601 close_on_exec_on(svd[1].fdlock); in runsv_main()
186 int fdlock; member697 if (ld->fdlock == -1) in logdir_close()699 close(ld->fdlock); in logdir_close()700 ld->fdlock = -1; in logdir_close()726 ld->fdlock = open("lock", O_WRONLY|O_NDELAY|O_APPEND|O_CREAT, 0600); in logdir_open()727 if ((ld->fdlock == -1) in logdir_open()728 || (flock(ld->fdlock, LOCK_EX | LOCK_NB) == -1) in logdir_open()736 close_on_exec_on(ld->fdlock); in logdir_open()