From 2d2d05d8646bf354d1ad7de83b9b92bda8756c11 Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Fri, 19 Dec 2008 23:38:28 +0000 Subject: [PATCH] (system_process_attributes): Close fd when done. --- src/sysdep.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sysdep.c b/src/sysdep.c index 70a019c39ae..fbd49739377 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -3743,6 +3743,9 @@ system_process_attributes (Lisp_Object pid) attrs = Fcons (Fcons (Qargs, decoded_cmd), attrs); } + if (fd >= 0) + emacs_close (fd); + UNGCPRO; return attrs; } -- 2.39.2