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.troc...@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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to