patch 8.0.0842: using slave pty after closing it

Problem:    Using slave pty after closing it.
Solution:   Do the ioctl() before dup'ing it.
diff --git a/src/version.c b/src/version.c
index 19ad732..0ef1f45 100644
--- a/src/version.c
+++ b/src/version.c
@@ -770,6 +770,8 @@
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    842,
+/**/
     841,
 /**/
     840,