Comment # 25 on bug 939594 from
(In reply to Dr. Werner Fink from comment #23)
> (In reply to Dominique Leuenberger from comment #22)
> 
> The code in agetty is strait forward:
> 
>         struct termios lock;
> #ifdef TIOCGLCKTRMIOS
>         int i =  (plymouth_command("--ping") == 0) ? 30 : 0;
> 
>         while (i-- > 0) {
>                 /*
>                  * Even with TTYReset=no it seems with systemd or plymouth
>                  * the termios flags become changed from under the first
>                  * agetty on a serial system console as the flags are locked.
>                  */
>                 memset(&lock, 0, sizeof(struct termios));
>                 if (ioctl(STDIN_FILENO, TIOCGLCKTRMIOS, &lock) < 0)
>                         break;
>                 if (!lock.c_iflag && !lock.c_oflag && !lock.c_cflag &&
> !lock.c_lflag)
>                         break;
>                 debug("termios locked\n");
>                 if (i == 15 && plymouth_command("quit") != 0)
>                         break;
>                 sleep(1);
>         }
>         memset(&lock, 0, sizeof(struct termios));
>         ioctl(STDIN_FILENO, TIOCSLCKTRMIOS, &lock);
> #endif



its it gdm 3.18.0.411 build ?


You are receiving this mail because: