summaryrefslogtreecommitdiff
path: root/src/master.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2014-11-14 10:49:14 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2014-11-14 10:49:14 +0100
commit0fcd6d23cb647f686c6b01c81dcc5e2b057d8948 (patch)
tree3f73ecefdb7137ea3096b9f8562dbf4bcc24b87e /src/master.c
parent8db8f32cec78eed65dd06be6ca6a8ff775f35682 (diff)
downloadbiruda-0fcd6d23cb647f686c6b01c81dcc5e2b057d8948.tar.gz
biruda-0fcd6d23cb647f686c6b01c81dcc5e2b057d8948.tar.bz2
..
Diffstat (limited to 'src/master.c')
-rw-r--r--src/master.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/master.c b/src/master.c
index f2d9835..53b71b8 100644
--- a/src/master.c
+++ b/src/master.c
@@ -16,6 +16,18 @@ static int master_must_terminate = 0;
coordinator_t coordinator[MAX_COORDINATORS];
+static void reregister_coordinator( const char *host )
+{
+ int pos;
+ for( pos = 0; pos < MAX_COORDINATORS; pos++ ) {
+ if( coordinator[pos].used &&
+ strcmp( coordinator[pos].host, host ) == 0 ) {
+ coordinator[pos].used = false;
+ return;
+ }
+ }
+}
+
static void register_coordinator( json_object *obj )
{
json_object *host_obj;