Close the control socket before exiting, so it will be unlinked.

MFC after:	1 week
This commit is contained in:
Pawel Jakub Dawidek 2011-01-27 19:31:35 +00:00
parent 94bf851dc1
commit c0dbce0016
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=217967

View File

@ -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: