mirror of
https://github.com/systemd/systemd.git
synced 2025-01-27 18:04:05 +03:00
bus: also take write queue into consideration in sd_bus_try_close()
This commit is contained in:
parent
610f780cd6
commit
14f862a508
@ -2968,6 +2968,9 @@ _public_ int sd_bus_try_close(sd_bus *bus) {
|
||||
if (bus->rqueue_size > 0)
|
||||
return -EBUSY;
|
||||
|
||||
if (bus->wqueue_size > 0)
|
||||
return -EBUSY;
|
||||
|
||||
r = bus_kernel_try_close(bus);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
Loading…
x
Reference in New Issue
Block a user