summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorWilliam Jon McCann <mccann@jhu.edu>2006-11-06 15:28:41 -0500
committerWilliam Jon McCann <mccann@jhu.edu>2006-11-06 15:28:41 -0500
commitbabc733eff30a2be18fa3f99bc3ef4f14e35d259 (patch)
tree729bc3c4107c86dd833e7aef3a7efe883d75056e /src/main.c
parentbe02d5de51072235c20d6974f0cccb485055a02e (diff)
Fix some small leaks. Add --timed-exit to daemon for valgrinding.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index de0370e..d1f5ad8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -60,6 +60,7 @@ main (int argc,
static GOptionEntry entries [] = {
{ "debug", 0, 0, G_OPTION_ARG_NONE, &debug, N_("Enable debugging code"), NULL },
{ "no-daemon", 0, 0, G_OPTION_ARG_NONE, &no_daemon, N_("Don't become a daemon"), NULL },
+ { "timed-exit", 0, 0, G_OPTION_ARG_NONE, &do_timed_exit, N_("Exit after a time - for debugging"), NULL },
{ NULL }
};
@@ -133,7 +134,7 @@ main (int argc,
loop = g_main_loop_new (NULL, FALSE);
if (do_timed_exit) {
- g_timeout_add (1000 * 60, (GSourceFunc) timed_exit_cb, loop);
+ g_timeout_add (3000 * 60, (GSourceFunc) timed_exit_cb, loop);
}
g_main_loop_run (loop);