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 <[email protected]>
  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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to