cluster - Improve hammer2 connect directive, add /etc/hammer2/autoconn
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 4 Dec 2012 22:23:22 +0000 (14:23 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 4 Dec 2012 22:29:59 +0000 (14:29 -0800)
commit2892d2116e7e99189a6ef8b1f8147f1bd18ee48b
tree11fe7769ce2395b8e1ed234a22de2b4d362bdfd3
parente47170422d23afd581b1aaa9ff024ee91a0e4d12
cluster - Improve hammer2 connect directive, add /etc/hammer2/autoconn

* Improve the hammer2 connect directive, fixing a socket descriptor reuse
  race.

* Monitor the file /etc/hammer2/autoconn which contains a list of hosts
  the hammer2 service demon whould automatically maintain connections to.

* Adjust the dmsg_master_service() API to also allow an alternative
  signalling descriptor and callback to be specified.  This simplifies
  forced connection terminations.

* Fix descriptor leak in dmsg_master_service() on closure.
lib/libdmsg/dmsg.h
lib/libdmsg/msg.c
lib/libdmsg/msg_lnk.c
lib/libdmsg/service.c
sbin/hammer2/cmd_service.c