summaryrefslogtreecommitdiff
path: root/exec/exec.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-04-27 10:03:04 +0000
committerRoland McGrath <roland@gnu.org>1996-04-27 10:03:04 +0000
commitf89dd27b65eb3fe12309c182e784b46df5d0d65b (patch)
treeda9379af83752ce700c6757b646513ec9f53833f /exec/exec.c
parent569d59b2be7a0d353303dbc9eb939b3993171c22 (diff)
Use ports_create_port instead of ports_allocate_port, and notice the error.
Diffstat (limited to 'exec/exec.c')
-rw-r--r--exec/exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/exec/exec.c b/exec/exec.c
index 040f3ed1..451cd606 100644
--- a/exec/exec.c
+++ b/exec/exec.c
@@ -1196,10 +1196,10 @@ do_exec (file_t file,
ports_replaced[idx] = 1;
}
- boot = ports_allocate_port (port_bucket, sizeof *boot, execboot_portclass);
+ e.error = ports_create_port (port_bucket, sizeof *boot,
+ execboot_portclass, &boot);
if (boot == NULL)
{
- e.error = ENOMEM;
stdout:
rwlock_reader_unlock (&std_lock);
goto out;