ctdb-cluster-mutex: Don't call the supplied hander more than once
authorMartin Schwenke <martin@meltin.net>
Wed, 1 Jun 2016 08:46:41 +0000 (18:46 +1000)
committerMartin Schwenke <martins@samba.org>
Tue, 7 Jun 2016 22:51:28 +0000 (00:51 +0200)
commita47da8246e3e3523c0152e67277fd6bc825e6b2b
tree8ffe614d34e20f1373501fefc0e0b3203bdd049e
parent630f169653b731025aeb0babcd8cf0710bc5d316
ctdb-cluster-mutex: Don't call the supplied hander more than once

After the first activity on the file descriptor, ignore any subsequent
activity.  Single-shot handlers are easier to write.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_cluster_mutex.c