doc/share/security/patches/SA-19:13/pts.patch
Gordon Tetlow c531075a51 Add EN-19:13 and SA-19:12 to SA-19:17.
Approved by:	so
2019-07-24 13:28:52 +00:00

22 lines
397 B
Diff

--- sys/kern/tty.c.orig
+++ sys/kern/tty.c
@@ -231,9 +231,6 @@
tp->t_flags |= TF_OPENCLOSE;
- /* Stop asynchronous I/O. */
- funsetown(&tp->t_sigio);
-
/* Remove console TTY. */
if (constty == tp)
constty_clear();
@@ -1124,6 +1121,9 @@
return;
}
+ /* Stop asynchronous I/O. */
+ funsetown(&tp->t_sigio);
+
/* TTY can be deallocated. */
dev = tp->t_dev;
tp->t_dev = NULL;