op_lockfile.h File Reference

PID-based lockfile management. More...

#include <sys/types.h>
Include dependency graph for op_lockfile.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int op_write_lock_file (char const *file)
 op_write_lock_file - write a lock file

Detailed Description

PID-based lockfile management.

Remarks:
Copyright 2002 OProfile authors
Read the file COPYING
Author:
John Levon
Philippe Elie

Function Documentation

int op_write_lock_file ( char const *  file  ) 

op_write_lock_file - write a lock file

Returns:
errno on failure, or 0 on success

Write the pid into the given lock file. Stale lock files are detected and reset.

References op_file_readable(), and pid.

Referenced by main().


Generated on 29 Jul 2013 for oprofile by  doxygen 1.6.1