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 ICD_SHUTDOWN_TIMEOUT 100 |
shutdown timeout function interval in ms
| #define PIDFILE "/var/run/icd2.pid" |
the pid file identical to previous version of icd
| enum icd_exit_status |
exit status
| static void icd_exec_shutdown | ( | struct icd_context * | icd_ctx | ) | [static] |
Cancel all requests and shut down ICd
| icd_ctx | icd context |
| static gboolean icd_exec_shutdown_check | ( | gpointer | data | ) | [static] |
Wait until the last request has exited and quit ICd
| data | icd context |
| static void icd_exec_signal_cb | ( | int | sig | ) | [static] |
Callback to handle posix signals
| sig | signal received |
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Main function
| argc | argc | |
| argv | argv |
1.5.1