svn commit: r217967 - head/sbin/hastd

Pawel Jakub Dawidek pjd at FreeBSD.org
Thu Jan 27 19:31:35 UTC 2011


Author: pjd
Date: Thu Jan 27 19:31:35 2011
New Revision: 217967
URL: http://svn.freebsd.org/changeset/base/217967

Log:
  Close the control socket before exiting, so it will be unlinked.
  
  MFC after:	1 week

Modified:
  head/sbin/hastd/hastd.c

Modified: head/sbin/hastd/hastd.c
==============================================================================
--- head/sbin/hastd/hastd.c	Thu Jan 27 19:28:29 2011	(r217966)
+++ head/sbin/hastd/hastd.c	Thu Jan 27 19:31:35 2011	(r217967)
@@ -666,6 +666,7 @@ main_loop(void)
 			case SIGTERM:
 				sigexit_received = true;
 				terminate_workers();
+				proto_close(cfg->hc_controlconn);
 				exit(EX_OK);
 				break;
 			case SIGCHLD:


More information about the svn-src-all mailing list