#include "op_lockfile.h"#include "op_file.h"#include <errno.h>#include <sys/types.h>#include <stdio.h>#include <signal.h>#include <unistd.h>
Go to the source code of this file.
Functions | |
| static pid_t | op_read_lock_file (char const *file) |
| int | op_write_lock_file (char const *file) |
PID-based lockfile management
Definition in file op_lockfile.c.
| static pid_t op_read_lock_file | ( | char const * | file | ) | [static] |
Definition at line 22 of file op_lockfile.c.
Referenced by op_write_lock_file().

| int op_write_lock_file | ( | char const * | file | ) |
op_write_lock_file - write a lock file
Write the pid into the given lock file. Stale lock files are detected and reset.
Definition at line 42 of file op_lockfile.c.
References op_file_readable(), op_read_lock_file(), and pid.
Referenced by main().


1.6.1