Skip to contentSkip to conversation

master - dmeventd: Improve comment about repeated DIE msgs

PATCH Alasdair Kergon 1 participant 1 message Jun 8, 2012

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=9f01f1453cef74b4198c1ef1ada3625f49c444a9
Commit:        9f01f1453cef74b4198c1ef1ada3625f49c444a9
Parent:        a35e45a79e1553b0d9c0c6825bbe151a61aefe90
Author:        Alasdair G Kergon <[email protected]>
AuthorDate:    Fri Jun 8 21:52:02 2012 +0100
Committer:     Alasdair G Kergon <[email protected]>
CommitterDate: Fri Jun 8 21:52:02 2012 +0100

dmeventd: Improve comment about repeated DIE msgs

---
 daemons/dmeventd/dmeventd.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
daemons/dmeventd/dmeventd.c +4 -1
index 801c984..91ef690 100644
@@ -1893,7 +1893,10 @@ static void restart(void)
 		exit(EXIT_FAILURE);
 	}
 
-	/* Let's wait a bit till deamon dies - spaming him with messages meanwhile */
+	/*
+	 * Wait for daemon to die, detected by sending further DIE messages
+	 * until one fails.
+	 */
 	for (i = 0; i < 10; ++i) {
 		if (daemon_talk(&fifos, &msg, DM_EVENT_CMD_DIE, "-", "-", 0, 0))
 			break; /* yep, it's dead probably */