Blame SOURCES/expect-5.45-fd-leak.patch

8154b0
diff -up expect5.45/exp_clib.c.orig expect5.45/exp_clib.c
8154b0
--- expect5.45/exp_command.c.orig	2014-09-04 12:12:21.075837835 +0200
8154b0
+++ expect5.45/exp_command.c	2014-09-04 12:13:39.098593465 +0200
8154b0
@@ -1161,7 +1161,7 @@ Exp_SpawnObjCmd(
8154b0
     /* if stty finds dev(stderr) != dev(stdout) */
8154b0
 
8154b0
     /* save error fd while we're setting up new one */
8154b0
-    errorfd = fcntl(2,F_DUPFD,3);
8154b0
+    errorfd = fcntl(2,F_DUPFD_CLOEXEC,3);
8154b0
     /* and here is the macro to restore it */
8154b0
 #define restore_error_fd {close(2);fcntl(errorfd,F_DUPFD,2);}
8154b0