pacemaker  2.0.4-2deceaa
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 pcmk__pid_active (pid_t pid, const char *daemon)
 
int pcmk__read_pidfile (const char *filename, pid_t *pid)
 
int pcmk__pidfile_matches (const char *filename, pid_t expected_pid, const char *expected_name, pid_t *pid)
 
int pcmk__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 106 of file pid.c.

Function Documentation

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

Definition at line 214 of file pid.c.

int pcmk__pid_active ( pid_t  pid,
const char *  daemon 
)

Definition at line 23 of file pid.c.

int pcmk__pidfile_matches ( const char *  filename,
pid_t  expected_pid,
const char *  expected_name,
pid_t *  pid 
)

Definition at line 172 of file pid.c.

int pcmk__read_pidfile ( const char *  filename,
pid_t *  pid 
)

Definition at line 118 of file pid.c.