From 22b07fa4ecebdfd103d9aa0030b92dae4db3b620 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 28 Mar 1996 20:21:36 +0000 Subject: (ports_manage_port_operations_one_thread): Fill in meaningful statuses and errors rather than just zero. --- libports/manage-one-thread.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libports') 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; } -- cgit v1.2.3