spawner.c File Reference


Functions

static int _write_pidfile (pid_t pid)
 Write the entranced pid to the defined pidfile.
static void _fork_and_exit (void)
 Make entranced a daemon by fork-and-exit.
static int _timer_cb_respawn_reset (void *)
static void * _filter_cb_start (void *)
static int _filter_cb_loop (void *, void *, int, void *)
static void _filter_cb_end (void *, void *)
static void _sigaction_cb_sigusr (int)
static int _event_cb_exited (void *, int, void *)
static int _event_cb_signal_exit (void *, int, void *)
static void _cb_atexit (void)
void usage (char *name)
int main (int argc, char **argv)

Variables

static Ecore_Event_Handler * _e_handler = NULL
static Ecore_Event_Handler * _d_handler = NULL
static Ecore_Event_Filter * _e_filter = NULL
static struct sigaction _entrance_d_sa
static unsigned char is_respawning = 0
static unsigned char exev = 0
static Ecore_Timer * respawn_timer = NULL

Function Documentation

static void _cb_atexit ( void   )  [static]

static int _event_cb_exited ( void *  ,
int  ,
void *   
) [static]

static int _event_cb_signal_exit ( void *  ,
int  ,
void *   
) [static]

static void _filter_cb_end ( void *  ,
void *   
) [static]

static int _filter_cb_loop ( void *  ,
void *  ,
int  ,
void *   
) [static]

static void * _filter_cb_start ( void *   )  [static]

static void _fork_and_exit ( void   )  [static]

Make entranced a daemon by fork-and-exit.

This is the default behavior.

static void _sigaction_cb_sigusr ( int   )  [static]

static int _timer_cb_respawn_reset ( void *   )  [static]

static int _write_pidfile ( pid_t  pid  )  [static]

Write the entranced pid to the defined pidfile.

Parameters:
pid The spawner's process ID, which is the pid after the fork if there was one
Returns:
0 if the operation was successful, 1 otherwise.

int main ( int  argc,
char **  argv 
)

void usage ( char *  name  ) 


Variable Documentation

Ecore_Event_Handler* _d_handler = NULL [static]

Ecore_Event_Filter* _e_filter = NULL [static]

Ecore_Event_Handler* _e_handler = NULL [static]

struct sigaction _entrance_d_sa [static]

unsigned char exev = 0 [static]

unsigned char is_respawning = 0 [static]

Ecore_Timer* respawn_timer = NULL [static]