summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libports/manage-one-thread.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libports/manage-one-thread.c b/libports/manage-one-thread.c
index 254a3770..57b8a9a9 100644
--- a/libports/manage-one-thread.c
+++ b/libports/manage-one-thread.c
@@ -64,7 +64,8 @@ ports_manage_port_operations_one_thread (struct port_bucket *bucket,
if (err)
{
mach_port_deallocate (mach_task_self (), inp->msgh_remote_port);
- status = 0;
+ outp->RetCode = err;
+ status = 1;
}
else
{
@@ -77,7 +78,10 @@ ports_manage_port_operations_one_thread (struct port_bucket *bucket,
ports_port_deref (pi);
}
else
- status = 0;
+ {
+ outp->RetCode = EOPNOTSUPP;
+ status = 1;
+ }
return status;
}