quassel: Install signal handlers in init() rather than ctor
authorManuel Nickschas <sputnick@quassel-irc.org>
Wed, 20 Jun 2018 20:12:25 +0000 (22:12 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 20 Jun 2018 20:30:52 +0000 (22:30 +0200)
commit957c473ed82455969dde581036afcf8d8c58e156
tree39b326f02f8978f0768771e1abe4e86761a112e5
parentc013d415d0e6e85cbb8c0adba9ded53bbcf4f36c
quassel: Install signal handlers in init() rather than ctor

Unix signal handlers require e.g. command line options, which are
not available at construction time of the Quassel instance.
Move signal handler registration into init().

Add TODO comments to remind us of the fact that we're not supposed
to use unsafe methods in signal handlers (which we currently do),
and should rework signal handling to be safe.
src/common/quassel.cpp