Karsten Hopp 07ad2d
To: vim_dev@googlegroups.com
Karsten Hopp 07ad2d
Subject: Patch 7.3.082
Karsten Hopp 07ad2d
Fcc: outbox
Karsten Hopp 07ad2d
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 07ad2d
Mime-Version: 1.0
Karsten Hopp 07ad2d
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 07ad2d
Content-Transfer-Encoding: 8bit
Karsten Hopp 07ad2d
------------
Karsten Hopp 07ad2d
Karsten Hopp 07ad2d
Patch 7.3.082
Karsten Hopp 07ad2d
Problem:    Leaking file descriptor when hostname doesn't exist.
Karsten Hopp 07ad2d
Solution:   Remove old debugging lines.
Karsten Hopp 07ad2d
Files:	    src/netbeans.c
Karsten Hopp 07ad2d
Karsten Hopp 07ad2d
Karsten Hopp 07ad2d
*** ../vim-7.3.081/src/netbeans.c	2010-12-08 13:11:15.000000000 +0100
Karsten Hopp 07ad2d
--- src/netbeans.c	2010-12-17 12:13:32.000000000 +0100
Karsten Hopp 07ad2d
***************
Karsten Hopp 07ad2d
*** 323,334 ****
Karsten Hopp 07ad2d
      server.sin_port = htons(port);
Karsten Hopp 07ad2d
      if ((host = gethostbyname(hostname)) == NULL)
Karsten Hopp 07ad2d
      {
Karsten Hopp 07ad2d
- 	if (mch_access(hostname, R_OK) >= 0)
Karsten Hopp 07ad2d
- 	{
Karsten Hopp 07ad2d
- 	    /* DEBUG: input file */
Karsten Hopp 07ad2d
- 	    sd = mch_open(hostname, O_RDONLY, 0);
Karsten Hopp 07ad2d
- 	    goto theend;
Karsten Hopp 07ad2d
- 	}
Karsten Hopp 07ad2d
  	nbdebug(("error in gethostbyname() in netbeans_connect()\n"));
Karsten Hopp 07ad2d
  	PERROR("gethostbyname() in netbeans_connect()");
Karsten Hopp 07ad2d
  	goto theend;
Karsten Hopp 07ad2d
--- 323,328 ----
Karsten Hopp 07ad2d
*** ../vim-7.3.081/src/version.c	2010-12-08 19:56:52.000000000 +0100
Karsten Hopp 07ad2d
--- src/version.c	2010-12-17 12:17:11.000000000 +0100
Karsten Hopp 07ad2d
***************
Karsten Hopp 07ad2d
*** 716,717 ****
Karsten Hopp 07ad2d
--- 716,719 ----
Karsten Hopp 07ad2d
  {   /* Add new patch number below this line */
Karsten Hopp 07ad2d
+ /**/
Karsten Hopp 07ad2d
+     82,
Karsten Hopp 07ad2d
  /**/
Karsten Hopp 07ad2d
Karsten Hopp 07ad2d
-- 
Karsten Hopp 07ad2d
How To Keep A Healthy Level Of Insanity:
Karsten Hopp 07ad2d
1. At lunch time, sit in your parked car with sunglasses on and point
Karsten Hopp 07ad2d
   a hair dryer at passing cars. See if they slow down.
Karsten Hopp 07ad2d
Karsten Hopp 07ad2d
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 07ad2d
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 07ad2d
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 07ad2d
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///