From a8e4effe5fd9fb5ef11cba9e970dad3e4b7bbb9a Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Wed, 25 May 1994 22:53:38 +0000 Subject: Formerly nosenders.c.~3~ --- libtrivfs/nosenders.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libtrivfs/nosenders.c b/libtrivfs/nosenders.c index 8e393567..9dd25056 100644 --- a/libtrivfs/nosenders.c +++ b/libtrivfs/nosenders.c @@ -20,6 +20,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Written by Michael I. Bushnell. */ #include "priv.h" +#include "notify_S.h" /* Called by the kernel when a port has no more senders. We arrange to have this sent to the port which is out of senders (NOTIFY). MSCOUNT @@ -31,6 +32,8 @@ trivfs_do_mach_notify_no_senders (mach_port_t notify, struct port_info *pt; pt = ports_get_port (notify); + if (!pt) + return EOPNOTSUPP; ports_no_senders (pt, mscount); -- cgit v1.2.3