ICd execution
[ICd internal functions]


Defines

#define PIDFILE   "/var/run/icd2.pid"
#define ICD_SHUTDOWN_TIMEOUT   100

Enumerations

enum  icd_exit_status {
  EXIT_FORK_FAILED = 2, EXIT_SETSID_FAILED, EXIT_FILE_OPEN_FAILED, EXIT_DUP_FAILED,
  EXIT_DBUS_ERROR, EXIT_REGISTER_ERROR, EXIT_GCONF_ERROR, EXIT_SOCKETPAIR_FAILED,
  EXIT_SIGNAL_HANDLERS_FAILED, EXIT_WATCH_FAILED, EXIT_ANOTHER_INSTANCE_RUNNING, EXIT_FAILED_TO_INIT,
  EXIT_PID_WRITE_FAILED
}

Functions

static gboolean icd_exec_shutdown_check (gpointer data)
static void icd_exec_shutdown (struct icd_context *icd_ctx)
static void icd_exec_signal_cb (int sig)
int main (int argc, char *argv[])

Define Documentation

#define ICD_SHUTDOWN_TIMEOUT   100

shutdown timeout function interval in ms

Referenced by icd_exec_shutdown().

#define PIDFILE   "/var/run/icd2.pid"

the pid file identical to previous version of icd

Referenced by main().


Enumeration Type Documentation

exit status


Function Documentation

static void icd_exec_shutdown ( struct icd_context icd_ctx  )  [static]

static gboolean icd_exec_shutdown_check ( gpointer  data  )  [static]

Wait until the last request has exited and quit ICd

Parameters:
data icd context
Returns:
FALSE while waiting, TRUE when all requests have been removed

References icd_context_stop(), icd_ctx, ILOG_DEBUG, ILOG_INFO, and icd_context::request_list.

Referenced by icd_exec_shutdown().

static void icd_exec_signal_cb ( int  sig  )  [static]

Callback to handle posix signals

Parameters:
sig signal received

References icd_context_get(), icd_ctx, icd_exec_shutdown(), icd_log_nextlevel(), icd_network_api_notify_pid(), icd_script_notify_pid(), icd_srv_provider_notify_pid(), ILOG_DEBUG, ILOG_INFO, and ILOG_WARN.

Referenced by main().

int main ( int  argc,
char *  argv[] 
)


Generated on Thu Mar 11 09:04:50 2010 for ICd2 by  doxygen 1.5.6