dbus/dbus
Simon McVittie 460e6282d6 _dbus_loop_iterate: if the kernel says a fd is bad, stop watching it
Again, this shouldn't happen - modules are responsible for cleaning up
their watches - but the failure mode here is really bad: if we leave an
invalid fd in the set, every poll() call will instantly return, marking
it as POLLNVAL. The result is that dbus-daemon busy-loops on poll()
without responding to I/O, so the bad watch will probably never be
cleared up.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=32992
Bug-NB: NB#200248
Reviewed-by: Colin Walters <walters@verbum.org>
2011-01-21 15:01:37 +00:00
..
.gitignore Update a load of .gitignores 2010-10-05 11:45:48 +01:00
dbus-address.c Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-address.h Decorated public exported functions with DBUS_EXPORT macro, reviewed by Colin Walters. 2010-03-16 09:33:39 +01:00
dbus-arch-deps.h.in Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-auth-script.c Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-auth-script.h Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-auth-util.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-auth.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-auth.h Merge branch 'fd-passing' 2009-07-16 16:05:16 +02:00
dbus-bus.c Revert "Bug 28460 - Refactored dbus configuration access." 2010-06-17 15:14:22 +01:00
dbus-bus.h Decorated public exported functions with DBUS_EXPORT macro, reviewed by Colin Walters. 2010-03-16 09:33:39 +01:00
dbus-connection-internal.h Corrected thread problem causing some calls to hang for 25s 2010-06-11 14:18:55 +02:00
dbus-connection.c connection: correct HAVE_DECL_MSG_NOSIGNAL guard 2011-01-05 12:08:57 +00:00
dbus-connection.h Decorated public exported functions with DBUS_EXPORT macro, reviewed by Colin Walters. 2010-03-16 09:33:39 +01:00
dbus-credentials-util.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-credentials.c [64 bit printf] Update to use DBUS_PID_FORMAT, print (omitted) 2010-03-22 14:35:28 -04:00
dbus-credentials.h Add _dbus_credentials_to_string_append 2010-03-16 15:57:27 -04:00
dbus-dataslot.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-dataslot.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-errors.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-errors.h Minor include file fix. 2010-06-07 15:34:22 +02:00
dbus-file-unix.c Make dbus-uuidgen atomic 2010-09-03 14:29:53 -04:00
dbus-file-win.c Fix typo in creating temp file. 2010-09-09 16:00:34 +02:00
dbus-file.c moved out dbus file related functions from sysdeps into separate files - tested on windows 2009-12-20 11:24:32 +01:00
dbus-file.h Make dbus-uuidgen atomic 2010-09-03 14:29:53 -04:00
dbus-hash.c Don't truncate pointers on Windows x64 platform 2010-05-03 10:48:38 +02:00
dbus-hash.h fix {u}intptr_t usage on wince with msvc 2010-05-05 07:57:28 +02:00
dbus-internals.c Make dbus-uuidgen atomic 2010-09-03 14:29:53 -04:00
dbus-internals.h Do not set DBUS_SESSION_BUS_DEFAULT_ADDRESS unconditional in code, it is already defined in build system. 2010-06-11 10:52:43 +02:00
dbus-keyring.c Don't pretend to free lock if it was never allocated 2010-10-05 14:50:22 +01:00
dbus-keyring.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-list.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-list.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-macros.h Annotate dbus_malloc*() functions with __attribute__ malloc and __attribute__ alloc_size 2011-01-05 13:13:48 +00:00
dbus-mainloop.c _dbus_loop_iterate: if the kernel says a fd is bad, stop watching it 2011-01-21 15:01:37 +00:00
dbus-mainloop.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-marshal-basic.c Merge branch 'dbus-1.2' 2010-03-22 14:39:56 -04:00
dbus-marshal-basic.h Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-marshal-byteswap-util.c Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-marshal-byteswap.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-marshal-byteswap.h Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-marshal-header.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-marshal-header.h Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-marshal-recursive-util.c Cleaned up _dbus_verbose calls: function names and code line numbers are printed by default. 2010-03-27 23:28:00 +01:00
dbus-marshal-recursive.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-marshal-recursive.h Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-marshal-validate-util.c Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-marshal-validate.c CVE 2010-4352: Reject deeply nested variants 2010-12-20 21:39:00 +00:00
dbus-marshal-validate.h CVE 2010-4352: Reject deeply nested variants 2010-12-20 21:39:00 +00:00
dbus-md5.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-md5.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-memory.c Revert "Bug 28460 - Refactored dbus configuration access." 2010-06-17 15:14:22 +01:00
dbus-memory.h Annotate dbus_malloc*() functions with __attribute__ malloc and __attribute__ alloc_size 2011-01-05 13:13:48 +00:00
dbus-mempool.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-mempool.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-message-factory.c CVE 2010-4352: Reject deeply nested variants 2010-12-20 21:39:00 +00:00
dbus-message-factory.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-message-internal.h Add an accessor for the loader's corruption reason 2010-01-28 17:01:23 -05:00
dbus-message-private.h Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-message-util.c Add unit tests for dbus_message_get_path_decomposed 2010-07-16 15:22:49 +01:00
dbus-message.c fix bad DBusMessageIter doc example 2011-01-19 16:01:49 +00:00
dbus-message.h Decorated public exported functions with DBUS_EXPORT macro, reviewed by Colin Walters. 2010-03-16 09:33:39 +01:00
dbus-misc.c Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-misc.h Decorated public exported functions with DBUS_EXPORT macro, reviewed by Colin Walters. 2010-03-16 09:33:39 +01:00
dbus-nonce.c dbus-nonce: check results of _dbus_string_init for OOM 2011-01-17 11:54:08 +00:00
dbus-nonce.h Fixes to the nonce code 2009-12-01 08:43:41 +01:00
dbus-object-tree.c Assert in _dbus_decompose_path if path is NULL or len is wrong 2010-07-16 15:22:47 +01:00
dbus-object-tree.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-pending-call-internal.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-pending-call.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-pending-call.h Decorated public exported functions with DBUS_EXPORT macro, reviewed by Colin Walters. 2010-03-16 09:33:39 +01:00
dbus-pipe-unix.c Fix error condition in _dbus_pipe_close 2011-01-04 19:37:19 +00:00
dbus-pipe-win.c Prepare for WinCE port: Convert windows code to native API, avoid errno. 2010-04-13 15:46:35 +02:00
dbus-pipe.c Don't truncate pointers on Windows x64 platform 2010-05-03 10:48:38 +02:00
dbus-pipe.h fix {u}intptr_t usage on wince with msvc 2010-05-05 07:57:28 +02:00
dbus-protocol.h Add a constant for the number of message types 2010-01-05 21:11:09 +01:00
dbus-resources.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-resources.h Merge branch 'fd-passing' 2009-07-16 16:05:16 +02:00
dbus-server-debug-pipe.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-server-debug-pipe.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-server-launchd.c Look up DISPLAY from launchd if not initialized. 2010-12-06 21:33:10 +01:00
dbus-server-launchd.h Add launchd implementation. 2010-12-06 21:33:06 +01:00
dbus-server-protected.h Handle case when autolaunched daemon address is already pulished on windows. 2010-12-14 08:12:59 +01:00
dbus-server-socket.c Extended autolaunch protocol with scope attribute. 2010-09-27 21:53:32 +02:00
dbus-server-socket.h Extended autolaunch protocol with scope attribute. 2010-09-27 21:53:32 +02:00
dbus-server-unix.c Enable launchd. 2010-12-06 21:33:14 +01:00
dbus-server-unix.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-server-win.c Handle case when autolaunched daemon address is already pulished on windows. 2010-12-14 08:12:59 +01:00
dbus-server-win.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-server.c Handle case when autolaunched daemon address is already pulished on windows. 2010-12-14 08:12:59 +01:00
dbus-server.h Decorated public exported functions with DBUS_EXPORT macro, reviewed by Colin Walters. 2010-03-16 09:33:39 +01:00
dbus-sha.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-sha.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-shared.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-shell.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-shell.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-signature.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-signature.h Decorated public exported functions with DBUS_EXPORT macro, reviewed by Colin Walters. 2010-03-16 09:33:39 +01:00
dbus-sockets-win.h Windows fix: MSVC 2010 has errno.h. 2010-12-31 16:12:18 +01:00
dbus-spawn-win.c Defensively protect against bogus argv argument on W32CE. 2010-05-03 10:56:31 +02:00
dbus-spawn.c dbus-spawn: don't leave bad file descriptors being watched 2011-01-21 15:00:25 +00:00
dbus-spawn.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-string-private.h Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-string-util.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-string.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-string.h Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-sysdeps-pthread.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-sysdeps-thread-win.c Avoid live lock in Windows (CE) under some situations due to unfair condition variables. 2010-12-29 22:44:27 +01:00
dbus-sysdeps-unix.c _dbus_read_credentials_socket: support OpenBSD 2011-01-21 13:27:18 +00:00
dbus-sysdeps-unix.h Enable launchd. 2010-12-06 21:33:14 +01:00
dbus-sysdeps-util-unix.c Make _dbus_system_logv actually exit with DBUS_SYSTEM_LOG_FATAL 2011-01-04 19:27:33 +00:00
dbus-sysdeps-util-win.c Wrap OutputDebugString for Windows CE builds, and add cast for MSVC. 2010-07-19 10:32:08 +02:00
dbus-sysdeps-util.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-sysdeps-win.c Use absolute session service dir path in bus-test on windows. 2010-12-29 14:43:24 +01:00
dbus-sysdeps-win.h Use absolute session service dir path in bus-test on windows. 2010-12-29 14:43:24 +01:00
dbus-sysdeps-wince-glue.c Wrap OutputDebugString for Windows CE builds, and add cast for MSVC. 2010-07-19 10:32:08 +02:00
dbus-sysdeps-wince-glue.h Wrap OutputDebugString for Windows CE builds, and add cast for MSVC. 2010-07-19 10:32:08 +02:00
dbus-sysdeps.c Revert "Bug 28460 - Refactored dbus configuration access." 2010-06-17 15:14:22 +01:00
dbus-sysdeps.h Use absolute session service dir path in bus-test on windows. 2010-12-29 14:43:24 +01:00
dbus-test-main.c Add support for Windows CE to the code base. 2010-04-13 20:38:59 +02:00
dbus-test.c Revert "Bug 28460 - Refactored dbus configuration access." 2010-06-17 15:14:22 +01:00
dbus-test.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-threads-internal.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-threads.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-threads.h Decorated public exported functions with DBUS_EXPORT macro, reviewed by Colin Walters. 2010-03-16 09:33:39 +01:00
dbus-timeout.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-timeout.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-transport-protected.h Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-transport-socket.c Cleaned up _dbus_verbose calls: function names and code line numbers are printed by default. 2010-03-27 23:28:00 +01:00
dbus-transport-socket.h The current state of the nonce-tcp implementation 2009-12-01 08:43:36 +01:00
dbus-transport-unix.c Enable launchd. 2010-12-06 21:33:14 +01:00
dbus-transport-unix.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-transport-win.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-transport-win.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-transport.c Extended autolaunch protocol with scope attribute. 2010-09-27 21:53:32 +02:00
dbus-transport.h Merge branch 'fd-passing' 2009-07-16 16:05:16 +02:00
dbus-types.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-userdb-util.c Don't truncate pointers on Windows x64 platform 2010-05-03 10:48:38 +02:00
dbus-userdb.c Don't truncate pointers on Windows x64 platform 2010-05-03 10:48:38 +02:00
dbus-userdb.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-uuidgen.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-uuidgen.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-watch.c Add return_if_fail watch != NULL in public DBusWatch API 2010-09-23 20:36:07 +01:00
dbus-watch.h Bug 896 - Avoid race conditions reading message from exited process 2009-07-14 15:41:57 -04:00
dbus.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
Makefile.am Enable launchd. 2010-12-06 21:33:14 +01:00
sd-daemon.c systemd: update sd-daemon.[ch] from upstream systemd 2010-09-06 03:17:54 +02:00
sd-daemon.h systemd: update sd-daemon.[ch] from upstream systemd 2010-09-06 03:17:54 +02:00
versioninfo.rc.in WIN32: add versioninfo, and export symbols 2009-12-01 08:36:26 +01:00