summaryrefslogtreecommitdiff
path: root/src/dbus/server/session.cpp
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2013-04-12 12:24:34 +0200
committerPatrick Ohly <patrick.ohly@intel.com>2013-05-06 16:28:13 +0200
commit5bafef3957bc32a2deb5a917c7773fcd92e8b953 (patch)
tree296aa4d91e7e618903097fdf8dbe46ddc87f4474 /src/dbus/server/session.cpp
parent649837c2c2d3858116a0e422dd890d082f7f99ac (diff)
engine: support additional signals in SuspendFlags
It can be useful to use additional signals like SIGURG or SIGIO (typically not used elsewhere) for simple interprocess communication. SuspendFlags now supports that by letting the process catch more than just SIGINT and SIGTERM and recording which signals were received. activate() calls can happen when already active, for example when syncevo-dbus-helper instantiates SyncContext, which activates signal handling for the duration of the sync. This was not handled well before, leaking previously allocated FDs and not restoring signal handlers correctly. Because the process quit anyway soon, this did not matter in practice. Now the code explicitly checks for this and returns the existing Guard in all following activate() calls, without changing the signal handling.
Diffstat (limited to 'src/dbus/server/session.cpp')
0 files changed, 0 insertions, 0 deletions