Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Feb 2011 12:21:29 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r218370 - head/sbin/hastd
Message-ID:  <201102061221.p16CLTCm064674@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Sun Feb  6 12:21:29 2011
New Revision: 218370
URL: http://svn.freebsd.org/changeset/base/218370

Log:
  Close more descriptors that can be open if the worker process for the given
  resource is already running.
  
  Submitted by:	Mikolaj Golub <to.my.trociny@gmail.com>
  MFC after:	1 week

Modified:
  head/sbin/hastd/hastd.c

Modified: head/sbin/hastd/hastd.c
==============================================================================
--- head/sbin/hastd/hastd.c	Sun Feb  6 11:39:51 2011	(r218369)
+++ head/sbin/hastd/hastd.c	Sun Feb  6 12:21:29 2011	(r218370)
@@ -109,6 +109,12 @@ descriptors_cleanup(struct hast_resource
 			proto_close(tres->hr_remotein);
 		if (tres->hr_remoteout != NULL)
 			proto_close(tres->hr_remoteout);
+		if (tres->hr_ctrl != NULL)
+			proto_close(tres->hr_ctrl);
+		if (tres->hr_event != NULL)
+			proto_close(tres->hr_event);
+		if (tres->hr_conn != NULL)
+			proto_close(tres->hr_conn);
 	}
 	if (cfg->hc_controlin != NULL)
 		proto_close(cfg->hc_controlin);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102061221.p16CLTCm064674>