Skip to content

Commit

Permalink
Fix #397: drop ttinit() for PID 1
Browse files Browse the repository at this point in the history
After reports from the field, see issue #397, of lockups at reboot,
we've decided to drop this code from PID 1.  It was added before the 4.x
series, when the current progress output was introduced.  For the older
style progress it served a purpose since the placement of [OK]/[FAIL]
was on the right hand side.

Signed-off-by: Joachim Wiberg <[email protected]>
  • Loading branch information
troglobit committed Mar 11, 2024
1 parent 5998342 commit c1ed373
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ static int loglevel = LOG_INFO;

void log_init(void)
{
ttinit();

if (debug)
loglevel = LOG_DEBUG;
else
Expand All @@ -53,13 +51,6 @@ void log_init(void)
/* If we enabled terse mode at boot, restore to previous setting at shutdown */
void log_exit(void)
{
/*
* Unless in debug mode at shutdown, Reinitialize screen,
* terminal may have been resized at runtime
*/
if (!debug)
ttinit();

enable_progress(1);
}

Expand Down

0 comments on commit c1ed373

Please sign in to comment.