mirror of
https://github.com/UzixLS/picocom.git
synced 2025-07-19 07:21:18 +03:00
Close tty_fd after resetting and before exiting
This commit is contained in:
@ -679,6 +679,8 @@ cleanup (int drain, int noreset, int hup)
|
|||||||
comments in term.c/term_exitfunc() for more. */
|
comments in term.c/term_exitfunc() for more. */
|
||||||
flock(tty_fd, LOCK_UN);
|
flock(tty_fd, LOCK_UN);
|
||||||
#endif
|
#endif
|
||||||
|
close(tty_fd);
|
||||||
|
tty_fd = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user