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

Herbert Xu
2004-10-08T02:22:10Z

Valdis.Kletnieks@vt.edu 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@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt