summaryrefslogtreecommitdiff
path: root/libports
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-03-28 20:21:36 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-03-28 20:21:36 +0000
commit22b07fa4ecebdfd103d9aa0030b92dae4db3b620 (patch)
tree450db456691645c54e76c6213e474095f6376a78 /libports
parent525dfa8696ba79a4b4353e15330c174ff072afd5 (diff)
(ports_manage_port_operations_one_thread): Fill in meaningful
statuses and errors rather than just zero.
Diffstat (limited to 'libports')
-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;
}