From 3fe29ca043a310aa6987f8c3432527d4634da451 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 10 Oct 2015 16:31:43 +0200 Subject: Make _hurd_raise_signal directly return the error * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by __msg_sig_post. --- hurd/hurd-raise.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'hurd') diff --git a/hurd/hurd-raise.c b/hurd/hurd-raise.c index 3ae6b57147..07c88102cd 100644 --- a/hurd/hurd-raise.c +++ b/hurd/hurd-raise.c @@ -48,7 +48,5 @@ _hurd_raise_signal (struct hurd_sigstate *ss, already marked the signal as pending for the particular thread we want. Generating the signal with an RPC might deliver it to some other thread. */ - err = __msg_sig_post (_hurd_msgport, 0, 0, __mach_task_self ()); - - return __hurd_fail(err); + return __msg_sig_post (_hurd_msgport, 0, 0, __mach_task_self ()); } -- cgit 1.4.1