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
This commit is contained in:
Pawel Jakub Dawidek 2011-02-06 12:21:29 +00:00
parent 180b0814db
commit 5aa85abd1d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=218370

View File

@ -109,6 +109,12 @@ descriptors_cleanup(struct hast_resource *res)
proto_close(tres->hr_remotein); proto_close(tres->hr_remotein);
if (tres->hr_remoteout != NULL) if (tres->hr_remoteout != NULL)
proto_close(tres->hr_remoteout); 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) if (cfg->hc_controlin != NULL)
proto_close(cfg->hc_controlin); proto_close(cfg->hc_controlin);