From 53b6ab286b83624cae9f8ffc4e6372b664d6029f Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 23 Dec 1993 01:22:23 +0000 Subject: [PATCH] (deactivate_process) [SVR4_PTYS]: If subtty is not nil, close it. --- src/process.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/process.c b/src/process.c index 105e055b180..408a2579ef0 100644 --- a/src/process.c +++ b/src/process.c @@ -1524,6 +1524,10 @@ deactivate_process (proc) 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); -- 2.39.5