svn commit: r218370 - head/sbin/hastd
Pawel Jakub Dawidek
pjd at FreeBSD.org
Sun Feb 6 12:21:30 UTC 2011
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 at 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);
More information about the svn-src-all
mailing list