From f89dd27b65eb3fe12309c182e784b46df5d0d65b Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 27 Apr 1996 10:03:04 +0000 Subject: Use ports_create_port instead of ports_allocate_port, and notice the error. --- exec/exec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'exec/exec.c') 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; -- cgit v1.2.3