From 06ea40d4aa946136fd6cef68942e1183751fadb8 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Tue, 26 Mar 2002 18:56:47 +0000 Subject: 2002-03-23 James A. Morrison * boot.c (main): Use error, not perror and exit. --- boot/boot.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'boot') 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); */ -- cgit v1.2.3