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

notify: Fix hang with lvm shell & --enable-notify-dbus

When lvm is compiled with --enable-notify-dbus and a user uses lvm
shell, after they issue 200+ commands the lvm shell will hang for
~30 seconds trying to notify the lvm dbus service that a change
has occurred.  This appears to be caused by resource exhaustion,
because the sockets used for dbus communication are not be closed.
This commit is contained in:
Tony Asleson 2016-08-12 14:31:06 -05:00
parent a185a2bea2
commit 0973d6e331

View File

@ -73,7 +73,7 @@ void lvmnotify_send(struct cmd_context *cmd)
out:
sd_bus_error_free(&error);
sd_bus_message_unref(m);
sd_bus_unref(bus);
sd_bus_flush_close_unref(bus);
}
void set_vg_notify(struct cmd_context *cmd)