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:
parent
bba1e4d11f
commit
c02af0773f
@ -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
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user