summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2010-08-02 00:29:57 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2010-08-02 00:29:57 +0200
commita6bb3e62109c72ec912d264418c5e9b95c780dbf (patch)
treeb93d1b7878c95c12bef53a173407940f80bc0e55 /init
parentf57d72dee53c79d5d527336bfbd9455c5262e963 (diff)
Partially revert 8451b436 to fix halt/reboot
init/init.c (S_msg_sig_post_untraced): Ignore result of msg_sig_post_untraced_reply. (S_msg_sig_post): Likewise.
Diffstat (limited to 'init')
-rw-r--r--init/init.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/init/init.c b/init/init.c
index 46457293..d66bee0b 100644
--- a/init/init.c
+++ b/init/init.c
@@ -1353,16 +1353,12 @@ S_msg_sig_post_untraced (mach_port_t msgport,
mach_port_t reply, mach_msg_type_name_t reply_type,
int signo, natural_t sigcode, mach_port_t refport)
{
- kern_return_t err;
-
if (refport != mach_task_self ())
return EPERM;
mach_port_deallocate (mach_task_self (), refport);
/* Reply immediately */
- err = msg_sig_post_untraced_reply (reply, reply_type, 0);
- if (err)
- return err;
+ msg_sig_post_untraced_reply (reply, reply_type, 0);
process_signal (signo);
return MIG_NO_REPLY;
@@ -1373,16 +1369,12 @@ S_msg_sig_post (mach_port_t msgport,
mach_port_t reply, mach_msg_type_name_t reply_type,
int signo, natural_t sigcode, mach_port_t refport)
{
- kern_return_t err;
-
if (refport != mach_task_self ())
return EPERM;
mach_port_deallocate (mach_task_self (), refport);
/* Reply immediately */
- err = msg_sig_post_reply (reply, reply_type, 0);
- if (err)
- return err;
+ msg_sig_post_reply (reply, reply_type, 0);
process_signal (signo);
return MIG_NO_REPLY;