diff options
author | David Teigland <teigland@redhat.com> | 2016-04-19 17:07:22 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2016-04-19 17:07:22 -0500 |
commit | 5400caa1539511a80a537391c60ec9e63c742e6f (patch) | |
tree | d02fa115d6b420fd492c71752d8feb7133d02384 | |
parent | 955326067348d29aa7b42159f43b119ce7d8c491 (diff) | |
download | lvm2-dev-dct-lvmetad-poll-connect.tar.gz |
lvmetad: connect from child polling processdev-dct-lvmetad-poll-connect
-rw-r--r-- | tools/polldaemon.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/polldaemon.c b/tools/polldaemon.c index 71d6b3e9b..c2211d734 100644 --- a/tools/polldaemon.c +++ b/tools/polldaemon.c @@ -596,6 +596,11 @@ static int _poll_daemon(struct cmd_context *cmd, struct poll_operation_id *id, parms->progress_display = 0; /* Child */ /* FIXME Use wait_event (i.e. interval = 0) and */ /* fork one daemon per copy? */ + + if (daemon_mode == 1) { + if (!lvmetad_connect(cmd)) + log_warn("WARNING: lvm polling process %d cannot connect to lvmetad.", getpid()); + } } /* |