about summary refs log tree commit diff
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:31:43 +0200
commit3fe29ca043a310aa6987f8c3432527d4634da451 (patch)
treea963cf4d6e0594d7c31f29747d3b156eb52c89af
parentee0976f7fc61f43a7140e100b36be1e05a965c67 (diff)
downloadglibc-3fe29ca043a310aa6987f8c3432527d4634da451.tar.gz
glibc-3fe29ca043a310aa6987f8c3432527d4634da451.tar.xz
glibc-3fe29ca043a310aa6987f8c3432527d4634da451.zip
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--ChangeLog4
-rw-r--r--hurd/hurd-raise.c4
2 files changed, 3 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index b1dd4f04fe..127843ac39 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,7 @@
 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
 
-	* hurd/hurd-raise.c (_hurd_raise_signal): Set errno to error returned
-	by __msg_sig_post.
+	* hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
+	__msg_sig_post.
 	* hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
 
 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
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 ());
 }