diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index d68c000e2..28fd06d0e 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.75 - ================================ + Synchronize with dead of dmeventd. Rename (Blk)DevNames/DevNos dmsetup header to (Blk)DevNamesUsed/DevNosUsed. Add configure --with-veritysetup for independent veritysetup tool. Properly support passed in dmevent path in dm_event_register_handler(). diff --git a/daemons/dmeventd/dmeventd.c b/daemons/dmeventd/dmeventd.c index ab9d23d3d..801c984f5 100644 --- a/daemons/dmeventd/dmeventd.c +++ b/daemons/dmeventd/dmeventd.c @@ -1893,6 +1893,13 @@ static void restart(void) exit(EXIT_FAILURE); } + /* Let's wait a bit till deamon dies - spaming him with messages meanwhile */ + for (i = 0; i < 10; ++i) { + if (daemon_talk(&fifos, &msg, DM_EVENT_CMD_DIE, "-", "-", 0, 0)) + break; /* yep, it's dead probably */ + usleep(10); + } + fini_fifos(&fifos); }