So hnoring quiet was important after all

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
Claudio Matsuoka committed 2008-10-16 13:51:21 -02:00
1 parent 65c971925c
commit 321264f0dc
1 file changed
+7 -1
+7 -1
View File
@@ -244,8 +244,14 @@ int main()
*/
if ((f = fopen("/proc/cmdline", "r")) != NULL) {
fgets(line, LINE_SIZE, f);
if ((strstr(line, "finit_debug")))
if ((strstr(line, "finit_debug"))) {
debug = 1;
}
if (strstr(line, "quiet")) {
close(0);
close(1);
close(2);
}
fclose(f);
}