[network-manager-vpnc] debug: add a --persist option that ignores the quit timer
- From: Dan Williams <dcbw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [network-manager-vpnc] debug: add a --persist option that ignores the quit timer
- Date: Fri, 6 Nov 2009 06:46:07 +0000 (UTC)
commit 928aeeece3dbd2322b0e25a12910dff410d28db6
Author: Dan Williams <dcbw redhat com>
Date: Mon Nov 2 16:21:06 2009 -0800
debug: add a --persist option that ignores the quit timer
src/nm-vpnc-service.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/nm-vpnc-service.c b/src/nm-vpnc-service.c
index 18dc112..ddf1bdb 100644
--- a/src/nm-vpnc-service.c
+++ b/src/nm-vpnc-service.c
@@ -611,9 +611,13 @@ main (int argc, char *argv[])
main_loop = g_main_loop_new (NULL, FALSE);
- g_signal_connect (plugin, "quit",
- G_CALLBACK (quit_mainloop),
- main_loop);
+ if ( (argc != 2)
+ || !argv[1]
+ || strcmp (argv[1], "--persist")) {
+ g_signal_connect (plugin, "quit",
+ G_CALLBACK (quit_mainloop),
+ main_loop);
+ }
g_main_loop_run (main_loop);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]