1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

dmeventd: Improve comment about repeated DIE msgs

This commit is contained in:
Alasdair G Kergon 2012-06-08 21:52:02 +01:00
parent a35e45a79e
commit 9f01f1453c

View File

@ -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 */