diff options
author | William Jon McCann <mccann@jhu.edu> | 2006-11-06 15:28:41 -0500 |
---|---|---|
committer | William Jon McCann <mccann@jhu.edu> | 2006-11-06 15:28:41 -0500 |
commit | babc733eff30a2be18fa3f99bc3ef4f14e35d259 (patch) | |
tree | 729bc3c4107c86dd833e7aef3a7efe883d75056e /src/main.c | |
parent | be02d5de51072235c20d6974f0cccb485055a02e (diff) |
Fix some small leaks. Add --timed-exit to daemon for valgrinding.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |