2
===================================================================
3
RCS file: /usr/local/cvs/debian/expect/exp_clib.c,v
4
retrieving revision 1.5
5
diff -u -r1.5 exp_clib.c
6
--- exp_clib.c 17 Aug 2004 07:09:41 -0000 1.5
7
+++ exp_clib.c 17 Aug 2004 08:30:46 -0000
10
/* save error fd while we're setting up new one */
11
errorfd = fcntl(2,F_DUPFD,3);
12
+ fcntl(3, F_SETFD, FD_CLOEXEC);
13
/* and here is the macro to restore it */
14
#define restore_error_fd {close(2);fcntl(errorfd,F_DUPFD,2);}
17
===================================================================
18
RCS file: /usr/local/cvs/debian/expect/exp_command.c,v
19
retrieving revision 1.9
20
diff -u -r1.9 exp_command.c
21
--- exp_command.c 17 Aug 2004 07:20:43 -0000 1.9
22
+++ exp_command.c 17 Aug 2004 08:30:46 -0000
25
/* save error fd while we're setting up new one */
26
errorfd = fcntl(2,F_DUPFD,3);
27
+ fcntl(3, F_SETFD, FD_CLOEXEC);
28
/* and here is the macro to restore it */
29
#define restore_error_fd {close(2);fcntl(errorfd,F_DUPFD,2);}