linux-user: Factor out handle_signal code from process_pending_signals()
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 27 May 2016 14:51:43 +0000 (15:51 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Tue, 7 Jun 2016 13:39:06 +0000 (16:39 +0300)
commiteb5525013ae4eaaa3038607aeb7bc1954fff8656
tree13bc167d1db5fdcb78992bae213eb2728c3ad598
parent575b22b1b7a843f34f52ebc9c00fb1c967258912
linux-user: Factor out handle_signal code from process_pending_signals()

Factor out the code to handle a single signal from the
process_pending_signals() function. The use of goto for flow control
is OK currently, but would get significantly uglier if extended to
allow running the handle_signal code multiple times.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/signal.c