[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: init patch
From: |
Alfred M. Szmidt |
Subject: |
Re: init patch |
Date: |
Wed, 22 Jan 2003 14:48:28 +0100 |
> This patch allows the computer to reboot if the user does not enter
> a value for the path to a server.
>
> Didn't I post something similar a while back?
Humm, if you did I did find it in the archives.
Looks like something ate my mail. This is what I posted:
2003-01-10 Alfred M. Szmidt <ams@kemisten.nu>
* init.c (start_child): Issue an error message (and loop forever)
if creating a console fails.
--- init.c.~1.129.~ 2002-05-08 16:02:18.000000000 +0200
+++ init.c 2003-01-10 23:20:57.000000000 +0100
@@ -1028,7 +1028,14 @@
err = argz_create ((char **) argv, &args, &arglen);
}
}
- assert_perror (err);
+
+ if (err)
+ {
+ error (0, err, "could not create a console");
+ /* Loop forever or untill someone presses the reboot button. */
+ for (;;)
+ ;
+ }
file = file_name_lookup (args, O_EXEC, 0);
if (file == MACH_PORT_NULL)
Re: init patch, James Morrison, 2003/01/21