chiark / gitweb /
bus-proxyd: handle -ESRCH and -ENXIO gracefully
authorDaniel Mack <daniel@zonque.org>
Tue, 23 Dec 2014 12:37:52 +0000 (13:37 +0100)
committerDaniel Mack <daniel@zonque.org>
Tue, 23 Dec 2014 12:41:34 +0000 (13:41 +0100)
commit259ac5cd7e37c4b9bd908460fe4de030aa252025
tree8c2388ebaf522de3e5ed8b4d5ddef05cf5ed164b
parent1d050f9f73b9b5d833687df163ad5a1692cf281c
bus-proxyd: handle -ESRCH and -ENXIO gracefully

Messages to destinations that are not currently owned by any bus connection
will cause kdbus related function to return with either -ENXIO or -ESRCH.

Such conditions should not make the proxyd terminate but send a sane
SD_BUS_ERROR_NAME_HAS_NO_OWNER error reply to the proxied connection.
src/bus-proxyd/bus-proxyd.c