diff --git a/daemons/dmeventd/dmeventd.c b/daemons/dmeventd/dmeventd.c index 801c984f5..91ef690b1 100644 --- a/daemons/dmeventd/dmeventd.c +++ b/daemons/dmeventd/dmeventd.c @@ -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 */