]> git.ozlabs.org Git - ppp.git/commitdiff
pppd: Set restore_term at correct place (#284)
authorpali <7141871+pali@users.noreply.github.com>
Mon, 7 Jun 2021 11:11:43 +0000 (13:11 +0200)
committerGitHub <noreply@github.com>
Mon, 7 Jun 2021 11:11:43 +0000 (21:11 +1000)
After successful call to tcsetattr/TCSAFLUSH it is needed to restore
terminal at the end. So set restore_term variable at correct place. Fixes
issue that fatal() call after tcsetattr/TCSAFLUSH does not restore terminal
settings.

Signed-off-by: Pali Rohár <pali@kernel.org>

No differences found