dbus/bus
Simon McVittie 58f968a2cc Always remove, invalidate and free watches before closing watched sockets
This should mean we don't get invalid fds in the main loop.

The BSD (kqueue) and Windows code paths are untested, but follow the same
patterns as the tested Linux/generic Unix versions.

DBusTransportSocket was already OK (it called free_watches() before
_dbus_close_socket, and that did the remove, invalidate, unref dance).

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33336
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
Reviewed-by: Thiago Macieira <thiago@kde.org>
2011-06-13 15:45:54 +01:00
..
.gitignore Ignore generated bus/org.freedesktop.dbus-session.plist 2010-12-15 09:43:11 +01:00
activation-exit-codes.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
activation-helper-bin.c Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
activation-helper.c Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
activation-helper.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
activation.c activation: Use _dbus_system_log for activation information 2011-04-26 14:12:10 -04:00
activation.h activation: optionally, use systemd for system bus activation 2010-07-09 19:47:23 +02:00
bus.c bus_context_log: divert messages to stderr if we're not using syslog 2011-05-25 18:16:37 +01:00
bus.h activation: optionally, use systemd for system bus activation 2010-07-09 19:47:23 +02:00
config-loader-expat.c Fixed gcc on windows limitation 2010-03-20 21:53:57 +01:00
config-loader-libxml.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
config-parser-common.c Do not use the name ELEMENT_TYPE 2011-03-07 13:50:38 +00:00
config-parser-common.h Do not use the name ELEMENT_TYPE 2011-03-07 13:50:38 +00:00
config-parser-trivial.c Fix some more stray occurrences of ELEMENT_TYPE 2011-03-07 13:55:10 +00:00
config-parser-trivial.h Merge branch 'dbus-1.2' 2010-06-22 17:25:20 +01:00
config-parser.c Break up the monster conditional in config-parser so gcov can cope 2011-04-07 11:25:54 +01:00
config-parser.h Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
connection.c Take care to free windows_sid in cache_peer_loginfo_string 2010-10-05 13:47:12 +01:00
connection.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus.service.in systemd: ensure that the system bus is unlikely to be killed on OOM 2011-01-18 23:46:15 +01:00
dbus.socket.in systemd: enable the dbus service unconditionally 2010-09-06 03:21:17 +02:00
desktop-file.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
desktop-file.h activation: optionally, use systemd for system bus activation 2010-07-09 19:47:23 +02:00
dir-watch-default.c Fix warnings on Windows builds. 2010-04-14 08:26:40 +02:00
dir-watch-dnotify.c Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dir-watch-inotify.c Always remove, invalidate and free watches before closing watched sockets 2011-06-13 15:45:54 +01:00
dir-watch-kqueue.c Always remove, invalidate and free watches before closing watched sockets 2011-06-13 15:45:54 +01:00
dir-watch.h Clean up inotify watch handling 2010-02-01 16:22:56 -05:00
dispatch.c activation: optionally, use systemd for system bus activation 2010-07-09 19:47:23 +02:00
dispatch.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
driver.c Revert merge of master (dbus-1.5) into dbus-1.4 2011-03-14 11:53:09 +00:00
driver.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
expirelist.c Cleaned up _dbus_verbose calls: function names and code line numbers are printed by default. 2010-03-27 23:28:00 +01:00
expirelist.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
main.c Always remove, invalidate and free watches before closing watched sockets 2011-06-13 15:45:54 +01:00
Makefile.am bus: use ln -fs to enable dbus in systemd, not $(LN_S) 2011-06-08 11:33:21 +01:00
messagebus-config.in Applied patches from cygwin port. 2010-08-10 08:25:24 +02:00
messagebus.in Fix use of $servicename in status 2010-07-09 11:52:59 -04:00
org.freedesktop.dbus-session.plist.in 10.4 is old so set more sensible launchd defaults. 2010-12-09 08:20:07 +01:00
policy.c Don't truncate pointers on Windows x64 platform 2010-05-03 10:48:38 +02:00
policy.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
rc.messagebus.in [legacy init script] Fix the use of $servicename 2010-04-23 12:02:19 -04:00
selinux.c process_config_first_time_only: initialize syslog as intended. 2011-05-25 18:16:35 +01:00
selinux.h Fix compilation in --disable-selinux case 2010-02-02 15:04:58 -05:00
services.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
services.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
session.conf.in Use nonce-tcp default session bus on Windows 2009-12-01 09:25:59 +01:00
signals.c Check parsing (or otherwise) of path_namespace in match rules 2011-04-07 16:30:41 +01:00
signals.h Rename path_prefix to path_namespace and disallow trailing '/' 2011-04-07 16:12:22 +01:00
system.conf.in Clean up and clarify default system policy 2008-12-18 15:34:24 -05:00
test-launch-helper.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
test-main.c Don't report file descriptors as "leaked" if they were already open 2011-04-27 16:28:36 +01:00
test-system.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
test.c activation: optionally, use systemd for system bus activation 2010-07-09 19:47:23 +02:00
test.h Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
utils.c Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
utils.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00