Re: Does init start with any open files?

From: Miquel van Smoorenburg
Date: Tue Dec 25 2012 - 08:59:55 EST


In article <xs4all.CAMmfjbPKGD28070A0JvMyL02juYW5tuwNmVwrJ-1gFzkNhCuDQ@xxxxxxxxxxxxxx> you write:
>When the init process is created on system startup, does it have any
>open file descriptors? If so, where do they point?

0, 1 and 2, which are connected to the console. Boot a kernel with
"init=/bin/bash" and see for yourself.

Mike.
--
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/