summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2013-07-04 15:36:29 +1000
committerAmitay Isaacs <amitay@gmail.com>2013-07-04 20:43:52 +1000
commitf032c60cd5fe487197d8ed8638dbbb6dce9d0bb0 (patch)
tree97dce3de4d23cff028bb45a2a8d9aae25ad0b0f5
parenta11e8ab75a87d959ad38071a8fc377413b490278 (diff)
downloadsamba-f032c60cd5fe487197d8ed8638dbbb6dce9d0bb0.tar.gz
samba-f032c60cd5fe487197d8ed8638dbbb6dce9d0bb0.tar.xz
samba-f032c60cd5fe487197d8ed8638dbbb6dce9d0bb0.zip
recoverd: Send the result from child process only once
The result has been sent before the child keeps waiting for parent ctdbd process. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 9aa13bcedd83d463c871e3cf1f3a65da3cd83992)
-rw-r--r--ctdb/server/ctdb_recoverd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ctdb/server/ctdb_recoverd.c b/ctdb/server/ctdb_recoverd.c
index b6b2f6b873..310c3348af 100644
--- a/ctdb/server/ctdb_recoverd.c
+++ b/ctdb/server/ctdb_recoverd.c
@@ -3231,7 +3231,6 @@ static int check_recovery_lock(struct ctdb_context *ctdb)
/* make sure we die when our parent dies */
while (ctdb_kill(ctdb, parent, 0) == 0 || errno != ESRCH) {
sleep(5);
- write(state->fd[1], &cc, 1);
}
_exit(0);
}