Simplify startup and teardown
The signal handler doesn't do anything except exit unsuccessfully, which is the same thing that would happen if we were interrupted by a signal. exit() is also not async-signal-safe, so calling it in this context is undefined behaviour, although _exit() would be OK. The cleanup function also doesn't do anything, so don't register it. The initialization function also doesn't do much, so inline it into its only caller. Signed-off-by:Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by:
André Magalhães <andre.magalhaes@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5501
Please register or sign in to comment