summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2015-10-10 16:31:43 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-10-10 16:32:32 +0200
commit3df39c7d0f6f51f47aee6e53f552ec5c9e6e6bea (patch)
treeffaea3233c760a1acbbd26591d671183ee4ed70e
parentd8be6ec46e17526da4588635f51e260e8de5daa0 (diff)
Make _hurd_raise_signal directly return the error
* hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by __msg_sig_post.
-rw-r--r--hurd/hurd-raise.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hurd/hurd-raise.c b/hurd/hurd-raise.c
index 94abedfc12..6bea41c1b4 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 ());
}