main: allow daemonizing again - initialize become_daemon to TRUE (bgo #701383)

7ff3d1500e reversed become_daemon for
"--no-daemon" with G_OPTION_FLAG_REVERSE, but missed to reverse initialization
into become_daemon=TRUE and thus NM couldn't be daemonized.

https://bugzilla.gnome.org/show_bug.cgi?id=701383
This commit is contained in:
Jiří Klimeš
2013-06-03 12:30:48 +02:00
parent cae49f0422
commit baf820e0c1

View File

@@ -303,7 +303,7 @@ int
main (int argc, char *argv[])
{
GOptionContext *opt_ctx = NULL;
gboolean become_daemon = FALSE, run_from_build_dir = FALSE;
gboolean become_daemon = TRUE, run_from_build_dir = FALSE;
gboolean debug = FALSE;
gboolean g_fatal_warnings = FALSE;
gs_free char *pidfile = NULL;