Reformatted init code to make if/while logic more clear.
Cleaned up some output from readbootlog. Added -e flg to bootlogd. When -e is used, data saved to the boot log file does not have escape characters removed. This means colour and cursor movement codes stay in the log file. The may then look nicer when read with "less -R', but may appear cluttered or out of alignment when viewed with other, plain-text tools.
This commit is contained in:
+5
-4
@@ -2433,7 +2433,8 @@ void check_init_fifo(void)
|
||||
}
|
||||
|
||||
/* Wait for data to appear, _if_ the pipe was opened. */
|
||||
if (pipe_fd >= 0) while(!quit) {
|
||||
if (pipe_fd >= 0) {
|
||||
while(!quit) {
|
||||
|
||||
/* Do select, return on EINTR. */
|
||||
FD_ZERO(&fds);
|
||||
@@ -2504,9 +2505,9 @@ void check_init_fifo(void)
|
||||
default:
|
||||
initlog(L_VB, "got unimplemented initrequest.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
} /* end of switch */
|
||||
} /* end of while loop not quitting */
|
||||
} /* end of if the pipe is open */
|
||||
/*
|
||||
* We come here if the pipe couldn't be opened.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user