diff options
author | Roland McGrath <roland@gnu.org> | 1996-04-27 10:03:04 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1996-04-27 10:03:04 +0000 |
commit | f89dd27b65eb3fe12309c182e784b46df5d0d65b (patch) | |
tree | da9379af83752ce700c6757b646513ec9f53833f /trans/crash.c | |
parent | 569d59b2be7a0d353303dbc9eb939b3993171c22 (diff) |
Use ports_create_port instead of ports_allocate_port, and notice the error.
Diffstat (limited to 'trans/crash.c')
-rw-r--r-- | trans/crash.c | 9 |
1 files changed, 4 insertions, 5 deletions
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. */ |