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:
Jesse Smith
2019-08-11 22:10:45 -03:00
parent 362315a997
commit fa124114ae
4 changed files with 45 additions and 20 deletions
+5 -4
View File
@@ -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.
*/