diff options
author | Chengwei Yang <chengwei.yang@intel.com> | 2013-11-01 16:23:27 +0800 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-11-01 11:35:58 +0000 |
commit | aa4b9d39bd04d18b57af9b247a326f6b7c328254 (patch) | |
tree | 8f1be514839dd34c9a237357676464e3c87212c3 | |
parent | 5852f76cb973ab66fead3a6e76cfa269811f78ca (diff) | |
download | dbus-aa4b9d39bd04d18b57af9b247a326f6b7c328254.tar.gz |
Use SIGHUP without check in UNIX environment
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>
-rw-r--r-- | bus/main.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -61,7 +61,6 @@ signal_handler (int sig) { switch (sig) { -#ifdef SIGHUP case SIGHUP: { DBusString str; @@ -94,7 +93,6 @@ signal_handler (int sig) } } break; -#endif case SIGTERM: { @@ -642,9 +640,7 @@ main (int argc, char **argv) * 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"); |