diff options
Diffstat (limited to 'x11/mlterm/patches/patch-an')
-rw-r--r-- | x11/mlterm/patches/patch-an | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/x11/mlterm/patches/patch-an b/x11/mlterm/patches/patch-an new file mode 100644 index 00000000000..d74dc627b2f --- /dev/null +++ b/x11/mlterm/patches/patch-an @@ -0,0 +1,26 @@ +$NetBSD: patch-an,v 1.1 2006/12/19 07:53:57 wiz Exp $ + +plugged fd leaks. + +http://mlterm.cvs.sourceforge.net/mlterm/mlterm/xwindow/x_display.c?r1=1.4&r2=1.5&view=patch + +--- xwindow/x_display.c.orig 2003/12/09 11:56:13 1.4 ++++ xwindow/x_display.c 2006/10/19 14:41:51 1.5 +@@ -7,6 +7,7 @@ + #include <kiklib/kik_debug.h> + #include <kiklib/kik_mem.h> + #include <kiklib/kik_str.h> /* strdup */ ++#include <kiklib/kik_file.h> /* kik_file_set_cloexec */ + + #include "x_xim.h" + #include "x_picture.h" +@@ -39,6 +40,9 @@ + goto error1 ; + } + ++ /* set close-on-exec flag on the socket connected to X. */ ++ kik_file_set_cloexec( XConnectionNumber( disp->display)); ++ + if( ( disp->name = strdup( name)) == NULL) + { + goto error2 ; |