diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2021-08-05 16:58:20 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-08-10 22:12:18 +0200 |
commit | 009ef29d60bb83dd6fdaeb647e27b3e0e385a733 (patch) | |
tree | 51209eb712a3b5e5f8931a9237f76b54c35d863c /libports | |
parent | cbe5af61970052429388737de19dbc7ad03ffa96 (diff) | |
download | hurd-009ef29d60bb83dd6fdaeb647e27b3e0e385a733.tar.gz hurd-009ef29d60bb83dd6fdaeb647e27b3e0e385a733.tar.bz2 hurd-009ef29d60bb83dd6fdaeb647e27b3e0e385a733.zip |
libports: Request notifications to the notify_port
Diffstat (limited to 'libports')
-rw-r--r-- | libports/interrupt-on-notify.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libports/interrupt-on-notify.c b/libports/interrupt-on-notify.c index 2feff63f..65072d07 100644 --- a/libports/interrupt-on-notify.c +++ b/libports/interrupt-on-notify.c @@ -32,7 +32,6 @@ ports_interrupt_rpc_on_notification (void *object, int req_notify; struct ports_notify *pn; struct rpc_notify *new_req, *req; - struct port_info *pi = object; pthread_mutex_lock (&_ports_lock); @@ -144,9 +143,10 @@ ports_interrupt_rpc_on_notification (void *object, { mach_port_t old; error_t err = - mach_port_request_notification (mach_task_self (), port, - what, 1, pi->port_right, - MACH_MSG_TYPE_MAKE_SEND_ONCE, &old); + mach_port_request_notification (mach_task_self (), port, + what, 1, + ports_port_notify_right (object), + MACH_MSG_TYPE_MAKE_SEND_ONCE, &old); if (! err && old != MACH_PORT_NULL) mach_port_deallocate (mach_task_self (), old); |