NetworkManager/callouts
Thomas Haller 073cc01f52 dispatcher: fix crash while logging from signal handler
Bug rh#1017884 describes a crash, where dbus_init() failed, which causes
a g_warning(). While writing the warning, a SIGTERM hit, and the
signal_handler() tries to call again g_message().

The logging functions of glib are not reentrant and call abort() when
invoked recursivly. The solution, is to use g_unix_signal_add, which
will dispatch the handler on the mainloop asynchronously.

This bug is not that serious, because the dispatcher was about to
terminate anyway. However, it gets registered as a crash by the system
(ABRT).

https://bugzilla.redhat.com/show_bug.cgi?id=1017884

Signed-off-by: Thomas Haller <thaller@redhat.com>
2013-11-19 00:20:12 +01:00
..
tests build: switch from $(INCLUDES) to $(AM_CPPFLAGS) to make automake happy 2013-08-22 11:49:16 -04:00
77-nm-olpc-mesh.rules olpc: add mesh device logic and config setting 2009-08-05 16:34:02 -04:00
Makefile.am build: switch from $(INCLUDES) to $(AM_CPPFLAGS) to make automake happy 2013-08-22 11:49:16 -04:00
nm-avahi-autoipd-action.c core: use _GNU_SOURCE consistently 2009-04-21 18:29:25 -04:00
nm-avahi-autoipd.conf dbus: final dbus policy fixes (bgo #563730) 2009-02-17 10:43:53 -05:00
nm-dispatcher-action.c dispatcher: fix crash while logging from signal handler 2013-11-19 00:20:12 +01:00
nm-dispatcher-action.h core: convert dispatcher to asynchronous operation and return its results 2012-09-11 17:06:16 -05:00
nm-dispatcher-utils.c trivial: whitespace fix 2013-11-07 21:32:08 +01:00
nm-dispatcher-utils.h dispatcher: enhance dispatcher script environment (bgo #648382) 2011-05-02 22:54:28 -05:00
nm-dispatcher.conf dbus: final dbus policy fixes (bgo #563730) 2009-02-17 10:43:53 -05:00
nm-dispatcher.xml core: convert dispatcher to asynchronous operation and return its results 2012-09-11 17:06:16 -05:00
org.freedesktop.nm_dispatcher.service.in systemd: add service for dispatcher (rh #948433) 2013-06-03 10:53:07 -05:00