diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-10-10 16:26:17 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-10-10 16:26:17 +0200 |
commit | aea4319c2632ccc1eefb44cdb2605bbdcf4a7be8 (patch) | |
tree | c0ef627f94c69e9482d4adc6f5ba06f0462c015d | |
parent | 8b842569cf00ff922cb81d69352d246cbfaba6cc (diff) | |
parent | d8be6ec46e17526da4588635f51e260e8de5daa0 (diff) |
Merge branch 'cvs/hurd_raise_signal' into refs/top-bases/tschwinge/Roger_Whittaker
-rw-r--r-- | hurd/hurd-raise.c | 8 | ||||
-rw-r--r-- | hurd/hurd/signal.h | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/hurd/hurd-raise.c b/hurd/hurd-raise.c index 23e5dd6974..94abedfc12 100644 --- a/hurd/hurd-raise.c +++ b/hurd/hurd-raise.c @@ -24,10 +24,12 @@ If SS is not NULL it is the sigstate for the calling thread; SS->lock is held on entry and released before return. */ -void +int _hurd_raise_signal (struct hurd_sigstate *ss, int signo, const struct hurd_signal_detail *detail) { + error_t err; + if (ss == NULL) { ss = _hurd_self_sigstate (); @@ -46,5 +48,7 @@ _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. */ - __msg_sig_post (_hurd_msgport, 0, 0, __mach_task_self ()); + err = __msg_sig_post (_hurd_msgport, 0, 0, __mach_task_self ()); + + return __hurd_fail(err); } diff --git a/hurd/hurd/signal.h b/hurd/hurd/signal.h index d94fb3cbd4..73bf976b7d 100644 --- a/hurd/hurd/signal.h +++ b/hurd/hurd/signal.h @@ -280,8 +280,8 @@ extern void _hurdsig_fault_init (void); sigstate SS points to. If SS is a null pointer, this instead affects the calling thread. */ -extern void _hurd_raise_signal (struct hurd_sigstate *ss, int signo, - const struct hurd_signal_detail *detail); +extern int _hurd_raise_signal (struct hurd_sigstate *ss, int signo, + const struct hurd_signal_detail *detail); /* Translate a Mach exception into a signal (machine-dependent). */ |