changeset 5239:f12fe7f21c2d

(deactivate_process) [SVR4_PTYS]: If subtty is not nil, close it.
author Richard M. Stallman <rms@gnu.org>
date Thu, 23 Dec 1993 01:22:23 +0000
parents 63932e111cc5
children eed870591987
files src/process.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Thu Dec 23 01:20:50 1993 +0000
+++ b/src/process.c	Thu Dec 23 01:22:23 1993 +0000
@@ -1524,6 +1524,10 @@
       close (inchannel);
       if (outchannel >= 0 && outchannel != inchannel)
  	close (outchannel);
+#ifdef SYSV4_PTYS
+      if (!NILP (p->subtty))
+        close (XINT (p->subtty));
+#endif
 #endif
 
       XSET (p->infd, Lisp_Int, -1);