Don't close descriptors on kernel "quiet" flag

(Asus legacy). Closing them prevents fsck output when booting quietly.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
Claudio Matsuoka
2008-09-11 16:45:19 -03:00
parent 6a8a3fd4ab
commit 1843a0e66f
+1 -7
View File
@@ -249,14 +249,8 @@ int main()
*/
if ((f = fopen("/proc/cmdline", "r")) != NULL) {
fgets(line, LINE_SIZE, f);
if (strstr(line, "quiet")) {
close(0);
close(1);
close(2);
}
if ((strstr(line, "finit_debug"))) {
if ((strstr(line, "finit_debug")))
debug = 1;
}
fclose(f);
}