mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 09:56:51 +03:00
bus: when a connection terminated use ECONNRESET as error
This commit is contained in:
parent
1e05d493b7
commit
6d6f4904aa
@ -2236,9 +2236,11 @@ _public_ int sd_bus_process(sd_bus *bus, sd_bus_message **ret) {
|
||||
switch (bus->state) {
|
||||
|
||||
case BUS_UNSET:
|
||||
case BUS_CLOSED:
|
||||
return -ENOTCONN;
|
||||
|
||||
case BUS_CLOSED:
|
||||
return -ECONNRESET;
|
||||
|
||||
case BUS_OPENING:
|
||||
r = bus_socket_process_opening(bus);
|
||||
if (r == -ECONNRESET || r == -EPIPE || r == -ESHUTDOWN) {
|
||||
|
Loading…
Reference in New Issue
Block a user