1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00

Use fchmod() to restore the tty modes.

This commit is contained in:
Peter Wemm 2002-07-30 03:49:27 +00:00
parent 7968e6d2b2
commit dfeeeca3bf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100900

View File

@ -833,7 +833,7 @@ close_tty()
restore_tty(ttyfd);
if (tty_mode != (mode_t) -1)
chmod(devnam, tty_mode);
fchmod(ttyfd, tty_mode);
close(ttyfd);
ttyfd = -1;