blob: 328465857c170b042b66f6be8bdb80073a8d12e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
$NetBSD: patch-ak,v 1.1 2006/12/19 07:53:57 wiz Exp $
plugged fd leaks.
http://mlterm.cvs.sourceforge.net/mlterm/mlterm/kiklib/src/kik_pty_bsd.c?r1=1.9&r2=1.10&view=patch
--- kiklib/src/kik_pty_bsd.c.orig 2003/03/08 03:19:29 1.9
+++ kiklib/src/kik_pty_bsd.c 2006/10/19 14:41:51 1.10
@@ -118,6 +118,7 @@
}
else
{
+ kik_file_set_cloexec( *master) ;
/*
* we succeeded to open pty master.
* opening pty slave in succession.
@@ -136,6 +137,7 @@
}
else
{
+ kik_file_set_cloexec( *slave) ;
return 1 ;
}
}
@@ -195,7 +197,6 @@
/*
* parent process
*/
-
/*
* delaying.
*/
@@ -301,5 +302,7 @@
#endif
}
+ kik_file_set_cloexec( *slave) ;
+
return pid ;
}
|