1
0
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:
Lennart Poettering 2013-12-22 19:50:07 +01:00
parent 610f780cd6
commit 14f862a508

View File

@ -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;