There should be no way signal_handler() can be called for a signal
we didn't ask for. If it somehow happens, ignore it.
Based on a patch from Thomas Zimmermann.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=98191
}
}
break;
+
+ default:
+ /* can't happen unless this signal handler gets used for a wrong
+ * signal, but keep -Wswitch-default happy */
+ break;
}
}
#endif /* DBUS_UNIX */