pacemaker  2.1.0-7c3f660
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 111 of file pid.c.

Function Documentation

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

Definition at line 219 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 177 of file pid.c.

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

Definition at line 123 of file pid.c.