1a8b68b3a5
Christian Biere in PR 34798 with minor fixes by me. Changes: * Improvements for compatibility with xterm: - Log file handling [kzys] - Function keys [seiichi] (Thanks to Konosuke Watanabe) - Sequence for setting scroll region [seiichi] (Thanks to SHIOTA Shoichi and Takashi SHIRAI) - Behavior of saving/restoring cursor [minami] (Thanks to Thomas Dickey for suggestions) - Termcap and Terminfo [minami, seiichi] - Turn off mouse position reporting by a "reset" sequence [minami] (Debian Bug #55637) * Improvement build prosess for cross-compiling [minami] * Workaround for missing rgb.txt [minami] * Updated documents [kzys, minami, seiichi] * Bug fix for broken selection requester [minami] * Added support for SCIM-1.4.x [seiichi] * Removed support for SCIM-1.0.x [seiichi] * Removed support for uim-0.x.x [seiichi] * Hebrew mapping table for "kbd" input method [seiich] * Revided a scroll caching mechanism [seiichi] (SF Bug #1161050) * Suppressed a check for libxpg4 of FreeBSD [seiichi] (Thanks to SHIOTA Shoichi and MANTANI Nobutaka) * Fixed a bug of alignment of full width chars when variable column width is enabled [minami] (Thanks to Oibane) * Vietnamese translation for mlconfig [Pham Thanh Long] * Other Bug fixes: - SF Bug #1206515 [Takeshi Hakamata] - SF Bug #1161055 [seiichi] - Debian Bug #302231 [Andreas Jochens] - Debian Bug #313970 [Jens Seidel] - Debian Bug #350590 [seiichi] - SUSE Bug #105320 [mfabian]
35 lines
907 B
Text
35 lines
907 B
Text
$NetBSD: patch-ao,v 1.1 2006/12/19 07:53:57 wiz Exp $
|
|
|
|
plugged fd leaks.
|
|
|
|
http://mlterm.cvs.sourceforge.net/mlterm/mlterm/xwindow/x_term_manager.c?r1=1.93&r2=1.95&view=patch
|
|
|
|
--- xwindow/x_term_manager.c.orig 2006/09/30 16:09:44 1.93
|
|
+++ xwindow/x_term_manager.c 2006/11/20 11:22:34 1.95
|
|
@@ -872,7 +872,8 @@
|
|
{
|
|
return -1 ;
|
|
}
|
|
-
|
|
+ kik_file_set_cloexec( sock_fd);
|
|
+
|
|
while( bind( sock_fd , (struct sockaddr *) &servaddr , sizeof( servaddr)) < 0)
|
|
{
|
|
if( errno == EADDRINUSE)
|
|
@@ -993,7 +994,7 @@
|
|
* If this flag off, this fd remained open until the child process forked in
|
|
* open_screen_intern()(ml_term_open_pty()) close it.
|
|
*/
|
|
- fcntl( fd , F_SETFD , 1) ;
|
|
+ kik_file_set_cloexec( fd) ;
|
|
|
|
if( ( fp = fdopen( fd , "r+")) == NULL)
|
|
{
|
|
@@ -1855,6 +1856,7 @@
|
|
{
|
|
additional_fds[i].fd = fd ;
|
|
additional_fds[i].handler = handler ;
|
|
+ kik_file_set_cloexec( fd);
|
|
|
|
return 0 ;
|
|
}
|