bus signal_handler: call _exit in the unlikely event that the pipe is full or invalid
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 29 Jun 2011 15:44:33 +0000 (16:44 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 5 Aug 2011 13:39:34 +0000 (14:39 +0100)
commitba2892396a6a3cfae7482e7d42d0a491eb2e723a
treef87e5f4a46e265e0b1e077bc555766a521bc9139
parent05389054bdad39851b551a79b53e60dc91e30976
bus signal_handler: call _exit in the unlikely event that the pipe is full or invalid

On OSs with abstract sockets, this is close enough. On OSs without
abstract sockets, this results in failing to clean up Unix sockets
in /tmp if someone has sent us thousands of SIGHUP signals since we
last entered the main loop - I think that's acceptable.

The reload pipe should never get closed, but if it is for some reason,
we want a SIGTERM after that to cause an exit too.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38656
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
bus/main.c