As Simon's comment
https://bugs.freedesktop.org/show_bug.cgi?id=66068#c8
we can do this in UNIX environment.
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
{
switch (sig)
{
-#ifdef SIGHUP
case SIGHUP:
{
DBusString str;
}
}
break;
-#endif
case SIGTERM:
{
* no point in trying to make the handler portable to non-Unix. */
_dbus_set_signal_handler (SIGTERM, signal_handler);
-#ifdef SIGHUP
_dbus_set_signal_handler (SIGHUP, signal_handler);
-#endif
#endif /* DBUS_UNIX */
_dbus_verbose ("We are on D-Bus...\n");