Re: [PATCH] Console: fall back to /dev/null when no console is availlable

From: Herbert Xu
Date: Thu Oct 07 2004 - 21:31:42 EST


Valdis.Kletnieks@xxxxxx wrote:
>
> The reason the rm/mknod isn't really safe is because if either of them
> generate an error message, they'll go wherever fd2 is pointing (which is
> the problem we're trying to solve, and a major bootstrap problem).

Just close them before you start:

exec <&- >&- 2>&-
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/