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 *) |
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 |
static int _event_cb_exited | ( | void * | data, | |
int | type, | |||
void * | event | |||
) | [static] |
References _timer_cb_respawn_reset(), entranced_auth_user_remove(), entranced_debug(), EXITCODE, is_respawning, and respawn_timer.
Referenced by main().
static int _event_cb_signal_exit | ( | void * | data, | |
int | type, | |||
void * | event | |||
) | [static] |
static void _filter_cb_end | ( | void * | data, | |
void * | loop_data | |||
) | [static] |
static int _filter_cb_loop | ( | void * | data, | |
void * | loop_data, | |||
int | type, | |||
void * | event | |||
) | [static] |
static void _fork_and_exit | ( | void | ) | [static] |
Make entranced a daemon by fork-and-exit.
This is the default behavior.
References _write_pidfile(), and PIDFILE.
Referenced by main().
static void _sigaction_cb_sigusr | ( | int | sig | ) | [static] |
static int _timer_cb_respawn_reset | ( | void * | data | ) | [static] |
static int _write_pidfile | ( | pid_t | pid | ) | [static] |
Write the entranced pid to the defined pidfile.
pid | The spawner's process ID, which is the pid after the fork if there was one |
References PIDDIR, and PIDFILE.
Referenced by _fork_and_exit(), and main().
int main | ( | int | argc, | |
char ** | argv | |||
) |
References _d_handler, _e_filter, _e_handler, _entrance_d_sa, _event_cb_exited(), _event_cb_signal_exit(), _filter_cb_end(), _filter_cb_loop(), _filter_cb_start(), _fork_and_exit(), _sigaction_cb_sigusr(), _write_pidfile(), DEBUG_X_SERVER, ENTRANCE, entranced_auth_user_remove(), entranced_debug(), entranced_debug_flag, NOT_RUNNING, PIDFILE, usage(), and X_DISP.
void usage | ( | char * | name | ) |
Referenced by main().
Ecore_Event_Handler* _d_handler = NULL [static] |
Referenced by main().
Ecore_Event_Handler* _e_handler = NULL [static] |
Referenced by main().
struct sigaction _entrance_d_sa [static] |
Referenced by main().
unsigned char exev = 0 [static] |
Referenced by _filter_cb_end(), _filter_cb_loop(), and _filter_cb_start().
unsigned char is_respawning = 0 [static] |
Referenced by _event_cb_exited(), and _timer_cb_respawn_reset().
Ecore_Timer* respawn_timer = NULL [static] |
Referenced by _event_cb_exited(), and _timer_cb_respawn_reset().