OSDN Git Service

linux-user: Return void from queue_signal()
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 14 Jan 2022 15:37:32 +0000 (15:37 +0000)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 18 Jan 2022 11:42:28 +0000 (12:42 +0100)
commit337e88d8909b1442956acfa351d48e30a272251c
tree305012bf4e11cf8055f3a0a46cd3b2e694cbb980
parentb5f9536643faa8a6a7b9e78d0944503a49a90fe3
linux-user: Return void from queue_signal()

The linux-user queue_signal() function always returns 1, and none of
its callers check the return value.  Give it a void return type
instead.

The return value is a leftover from the old pre-2016 linux-user
signal handling code, which really did have a queue of signals and so
might return a failure indication if too many signals were queued at
once.  The current design avoids having to ever have more than one
signal queued via queue_signal() at once, so it can never fail.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220114153732.3767229-4-peter.maydell@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/signal-common.h
linux-user/signal.c