pacemaker  2.0.2-debe490
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pid.c File Reference
#include <crm_internal.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <crm/crm.h>
Include dependency graph for pid.c:

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 
#define LOCKSTRLEN   11
 

Functions

int crm_pid_active (long pid, const char *daemon)
 
long crm_read_pidfile (const char *filename)
 
long crm_pidfile_inuse (const char *filename, long mypid, const char *daemon)
 
int crm_lock_pidfile (const char *filename, const char *name)
 

Macro Definition Documentation

#define _GNU_SOURCE

Definition at line 13 of file pid.c.

#define LOCKSTRLEN   11

Definition at line 100 of file pid.c.

Function Documentation

int crm_lock_pidfile ( const char *  filename,
const char *  name 
)

Definition at line 168 of file pid.c.

int crm_pid_active ( long  pid,
const char *  daemon 
)

Definition at line 23 of file pid.c.

long crm_pidfile_inuse ( const char *  filename,
long  mypid,
const char *  daemon 
)

Definition at line 141 of file pid.c.

long crm_read_pidfile ( const char *  filename)

Definition at line 103 of file pid.c.