1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Do not run a new dmeventd instance on restart if there's no existing one.

This commit is contained in:
Peter Rajnoha 2012-03-14 11:16:00 +00:00
parent bba1e4d11f
commit c02af0773f
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
Version 1.02.75 - Version 1.02.75 -
================================ ================================
Do not run a new dmeventd instance on restart if there's no existing one.
Make the time window for reading fifo longer 5sec (1.02.73). Make the time window for reading fifo longer 5sec (1.02.73).
Version 1.02.74 - 6th March 2012 Version 1.02.74 - 6th March 2012

View File

@ -1829,13 +1829,13 @@ static void restart(void)
if (!init_fifos(&fifos)) { if (!init_fifos(&fifos)) {
fprintf(stderr, "WARNING: Could not initiate communication with existing dmeventd.\n"); fprintf(stderr, "WARNING: Could not initiate communication with existing dmeventd.\n");
return; exit(EXIT_FAILURE);
} }
if (!dm_event_get_version(&fifos, &version)) { if (!dm_event_get_version(&fifos, &version)) {
fprintf(stderr, "WARNING: Could not communicate with existing dmeventd.\n"); fprintf(stderr, "WARNING: Could not communicate with existing dmeventd.\n");
fini_fifos(&fifos); fini_fifos(&fifos);
return; exit(EXIT_FAILURE);
} }
if (version < 1) { if (version < 1) {