]> git.ozlabs.org Git - ppp.git/commit
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)
commitad60737852c22a3c19c379bd94ecc76b80386f4f
tree3c949201b1dbcc03cc80d3600e00d85127dcc015
parentd65f6713c8514b016629b87d44d5154d70776f7b
pppd: Set restore_term at correct place (#284)

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>
pppd/sys-linux.c