RESOLVED WONTFIX 161135
[GTK] Use dbus-run-session when possible to avoid left-over dbus-daemon instances
https://bugs.webkit.org/show_bug.cgi?id=161135
Summary [GTK] Use dbus-run-session when possible to avoid left-over dbus-daemon insta...
Gustavo Noronha (kov)
Reported 2016-08-24 04:41:33 PDT
[GTK] Use dbus-run-session to avoid left-over dbus-daemon instances
Attachments
Patch (3.52 KB, patch)
2016-08-24 13:05 PDT, Gustavo Noronha (kov)
no flags
Gustavo Noronha (kov)
Comment 1 2016-08-24 05:06:28 PDT
There are tons of dbus-launch left-overs on buildbots that run the gtk API tests. We should use dbus-run-session if possible, which is designed for this use case and should be more dependable regarding left-overs. However, it does not work like dbus-launch, by printing out the environment for the bus, it needs to be used as a prefix for the executable, so it would require a bit of a refactoring.
Gustavo Noronha (kov)
Comment 2 2016-08-24 13:05:22 PDT
Michael Catanzaro
Comment 3 2016-09-08 20:37:23 PDT
If you don't select the right component, we don't notice the bug!
Michael Catanzaro
Comment 4 2016-09-08 20:41:35 PDT
Do we have to keep the fallback codepath? Is dbus-run-session relatively new (unavailable in Ubuntu 14.04 or Debian Jessie)? If not, let's clean up the old code too.
Carlos Alberto Lopez Perez
Comment 5 2016-09-08 20:44:42 PDT
(In reply to comment #1) > There are tons of dbus-launch left-overs on buildbots that run the gtk API > tests. We should use dbus-run-session if possible, which is designed for > this use case and should be more dependable regarding left-overs. However, > it does not work like dbus-launch, by printing out the environment for the > bus, it needs to be used as a prefix for the executable, so it would require > a bit of a refactoring. You can set this environment variable on the bot: WEBKITBOT_TASKSTOKILL=dbus-daemon It will try to kill any process with that name. Check: https://trac.webkit.org/changeset/195587 But the above is an ugly hack, your patch address this issue better.
Gustavo Noronha (kov)
Comment 6 2016-09-19 07:51:14 PDT
(In reply to comment #3) > If you don't select the right component, we don't notice the bug! Sorry, out of practice =/ I thought the [GTK] prefix was the main indication still. (In reply to comment #4) > Do we have to keep the fallback codepath? Is dbus-run-session relatively new > (unavailable in Ubuntu 14.04 or Debian Jessie)? If not, let's clean up the > old code too. Yes. I left the old code path there because it is fairly new. It's available in jessie but not ubuntu 14.04.
Michael Catanzaro
Comment 7 2016-10-31 10:51:41 PDT
Comment on attachment 286883 [details] Patch Sorry it got missed
Michael Catanzaro
Comment 8 2016-11-02 09:40:48 PDT
WONTFIXing this based on discussion in bug #161481
Note You need to log in before you can comment on or make changes to this bug.