diff options
author | Neal H. Walfield <neal@gnu.org> | 2002-03-26 18:56:47 +0000 |
---|---|---|
committer | Neal H. Walfield <neal@gnu.org> | 2002-03-26 18:56:47 +0000 |
commit | 06ea40d4aa946136fd6cef68942e1183751fadb8 (patch) | |
tree | 31ccc710bbe6e1a88d76b3bb261ab813fb052d2b /boot | |
parent | 05f53ac80538a6411b5ebaed17ace8c708f8615b (diff) |
2002-03-23 James A. Morrison <ja2morri@uwaterloo.ca>
* boot.c (main): Use error, not perror and exit.
Diffstat (limited to 'boot')
-rw-r--r-- | boot/boot.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/boot/boot.c b/boot/boot.c index 2d2e699b..01d0be25 100644 --- a/boot/boot.c +++ b/boot/boot.c @@ -1,6 +1,6 @@ /* Load a task using the single server, and then run it as if we were the kernel. - Copyright (C) 1993,94,95,96,97,98,99,2000,01 Free Software Foundation, Inc. + Copyright (C) 1993,94,95,96,97,98,99,2000,01,02 Free Software Foundation, Inc. This file is part of the GNU Hurd. @@ -670,11 +670,8 @@ main (int argc, char **argv, char **envp) FD_SET (0, &rmask); if (select (1, &rmask, 0, 0, 0) == 1) read_reply (); - else - { /* We hosed */ - perror ("select"); - exit (5); - } + else /* We hosed */ + error (5, errno, "select"); } /* mach_msg_server (request_server, __vm_page_size * 2, receive_set); */ |