From 70db307adda765729913eaf355077faa78c5caaf Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Thu, 5 Aug 2021 19:18:03 +0300 Subject: console: Forward any libports-requested notifications to them libports will start requesting dead-name notifications on its own. As we handle all notifications, both ones we have requested and ones libports has, distinguish between the two handlers by the port. --- console/display.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'console/display.c') diff --git a/console/display.c b/console/display.c index 1336371d..5ebabeb9 100644 --- a/console/display.c +++ b/console/display.c @@ -330,6 +330,10 @@ do_mach_notify_dead_name (struct port_info *pi, mach_port_t dead_name) struct modreq **preq; struct modreq *req; + /* Forward any libports-requested notifications to them. */ + if (ports_port_is_notify (pi)) + return ports_do_mach_notify_dead_name (pi, dead_name); + if (!notify_port || notify_port->pi.bucket != notify_bucket || notify_port->pi.class != notify_class) -- cgit v1.2.3