kill.c File Reference

#include <errno.h>
#include <sys/types.h>
#include <signal.h>
#include "../../mem/shm_mem.h"
#include "../../dprint.h"
#include "../../timer.h"
#include "../../locking.h"
#include "kill.h"

Include dependency graph for kill.c:

Go to the source code of this file.

Defines

#define lock()   lock_get(kill_lock)
#define unlock()   lock_release(kill_lock)

Functions

void destroy_kill (void)
int initialize_kill (void)
int schedule_to_kill (int pid)
static void timer_routine (unsigned int ticks, void *attr)

Variables

static struct timer_list kill_list
static gen_lock_t * kill_lock = NULL


Define Documentation

 
#define lock (  )     lock_get(kill_lock)

 
#define unlock (  )     lock_release(kill_lock)


Function Documentation

void destroy_kill ( void   ) 

Definition at line 159 of file kill.c.

References kill_lock, and time_to_kill.

Referenced by exec_shutdown().

int initialize_kill ( void   ) 

int schedule_to_kill ( int  pid  ) 

static void timer_routine ( unsigned int  ticks,
void *  attr 
) [static]


Variable Documentation

struct timer_list kill_list [static]

Definition at line 58 of file kill.c.

Referenced by initialize_kill(), schedule_to_kill(), and timer_routine().

gen_lock_t* kill_lock = NULL [static]

Definition at line 55 of file kill.c.

Referenced by destroy_kill(), and initialize_kill().


Generated on Wed May 23 08:01:16 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6