diff options
author | Stef Walter <stefw@gnome.org> | 2012-08-08 15:15:34 +0200 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2012-08-11 07:20:05 +0200 |
commit | 6da2939d0b6572c445555985da3ac5da234ad4f6 (patch) | |
tree | 330d819b02c36540310f50571a45294df382a358 /daemon | |
parent | 1cf271ccf8652fc63b6d63dfa80320b7e6e072c1 (diff) |
daemon: When --replace quit all running daemons
* When using --replace we assume that we're supposed to replace
all running daemons in the session, rather than just the
first we discovered.
https://bugzilla.gnome.org/show_bug.cgi?id=681449
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/gkd-main.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/daemon/gkd-main.c b/daemon/gkd-main.c index 26b1f951..71cb98de 100644 --- a/daemon/gkd-main.c +++ b/daemon/gkd-main.c @@ -602,7 +602,13 @@ replace_daemon_at (const gchar *directory) if (ret == TRUE) g_usleep (200 * 1000); /* 200 ms in us */ - return ret; + /* + * Note that we don't return TRUE, since we want to quit all the + * running daemons (for this session) that may have been started + * by dbus or elsewhere. + */ + + return FALSE; } typedef gboolean (*DiscoverFunc) (const gchar *control_directory); |