diff options
Diffstat (limited to 'libports/ports.h')
-rw-r--r-- | libports/ports.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libports/ports.h b/libports/ports.h index f02edb42..9299bc40 100644 --- a/libports/ports.h +++ b/libports/ports.h @@ -29,6 +29,8 @@ #include <pthread.h> #include <refcount.h> +#include "port-deref-deferred.h" + #ifdef PORTS_DEFINE_EI #define PORTS_EI #else @@ -73,6 +75,7 @@ struct port_bucket int rpcs; int flags; int count; + struct ports_threadpool threadpool; }; /* FLAGS above are the following: */ #define PORT_BUCKET_INHIBITED PORTS_INHIBITED @@ -262,6 +265,9 @@ ports_lookup_payload (struct port_bucket *bucket, { struct port_info *pi = (struct port_info *) payload; + if (pi && ! MACH_PORT_VALID (pi->port_right)) + pi = NULL; + if (pi && bucket && pi->bucket != bucket) pi = NULL; |