Exit when no devices are in use

When no actions are happening on any of the devices, make the
daemon exit after 30 seconds.
This commit is contained in:
Bastien Nocera
2008-11-03 15:00:31 +00:00
committed by Daniel Drake
parent e29806cd88
commit b0f2060628
3 changed files with 45 additions and 0 deletions

View File

@ -34,6 +34,7 @@
#include "file_storage.h"
DBusGConnection *fprintd_dbus_conn = NULL;
gboolean no_timeout = FALSE;
static gboolean g_fatal_warnings = FALSE;
GQuark fprint_error_quark(void)
@ -287,6 +288,7 @@ bail:
static const GOptionEntry entries[] = {
{"g-fatal-warnings", 0, 0, G_OPTION_ARG_NONE, &g_fatal_warnings, "Make all warnings fatal", NULL},
{"no-timeout", 't', 0, G_OPTION_ARG_NONE, &no_timeout, "Do not exit after unused for a while", NULL},
{ NULL }
};