Skip to content

Commit c1ed373

Browse files
committed
Fix #397: drop ttinit() for PID 1
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 <troglobit@gmail.com>
1 parent 5998342 commit c1ed373

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/log.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ static int loglevel = LOG_INFO;
4242

4343
void log_init(void)
4444
{
45-
ttinit();
46-
4745
if (debug)
4846
loglevel = LOG_DEBUG;
4947
else
@@ -53,13 +51,6 @@ void log_init(void)
5351
/* If we enabled terse mode at boot, restore to previous setting at shutdown */
5452
void log_exit(void)
5553
{
56-
/*
57-
* Unless in debug mode at shutdown, Reinitialize screen,
58-
* terminal may have been resized at runtime
59-
*/
60-
if (!debug)
61-
ttinit();
62-
6354
enable_progress(1);
6455
}
6556

0 commit comments

Comments
 (0)