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. --- trans/crash.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'trans/crash.c') diff --git a/trans/crash.c b/trans/crash.c index ee9c71f0..812c2543 100644 --- a/trans/crash.c +++ b/trans/crash.c @@ -1,5 +1,5 @@ /* GNU Hurd standard crash dump server. - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1996 Free Software Foundation, Inc. Written by Roland McGrath. This file is part of the GNU Hurd. @@ -103,10 +103,9 @@ S_crash_dump_task (mach_port_t port, { struct crasher *c; - c = ports_allocate_port (port_bucket, sizeof *c, crasher_portclass); - if (! c) - err = ENOMEM; - else + err = ports_create_port (port_bucket, sizeof *c, + crasher_portclass, &c); + if (! err) { /* Install our port as the crasher's msgport. We will wait for signals to resume (crash) it. */ -- cgit v1.2.3