master - lvmetad: connect from forked polling process
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=5c104c5de9b019f5cf9b93ff2ee5468e1f0641d1 Commit: 5c104c5de9b019f5cf9b93ff2ee5468e1f0641d1 Parent: 955326067348d29aa7b42159f43b119ce7d8c491 Author: David Teigland <[email protected]> AuthorDate: Tue Apr 19 17:07:22 2016 -0500 Committer: David Teigland <[email protected]> CommitterDate: Wed Apr 20 09:04:39 2016 -0500
lvmetad: connect from forked polling process
With commit 5e9e43074a6c, lvmetad connections are
now made explicitly, so a new connection must be
created from a child created for polling.
--- tools/polldaemon.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
tools/polldaemon.c +5 -0
@@ -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 ()); + } }/*