diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-05-17 02:50:00 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-05-17 04:26:27 +0200 |
commit | d5a2b9a6f455468a0f29483303657ab4fd7013d8 (patch) | |
tree | 99ffb05077e6318545de6cb182f2bbbf278ceda9 /src/libsystemd-bus/bus-internal.h | |
parent | 63edf05ed9c1d4cb5cf9364e734b2a96f84622d0 (diff) |
bus: return ECHILD as soon as people try to reuse a bus connection across a fork()
Diffstat (limited to 'src/libsystemd-bus/bus-internal.h')
-rw-r--r-- | src/libsystemd-bus/bus-internal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-internal.h b/src/libsystemd-bus/bus-internal.h index 5ba32ad8fd..b6975c54a2 100644 --- a/src/libsystemd-bus/bus-internal.h +++ b/src/libsystemd-bus/bus-internal.h @@ -171,6 +171,8 @@ struct sd_bus { struct memfd_cache memfd_cache[MEMFD_CACHE_MAX]; unsigned n_memfd_cache; + + pid_t original_pid; }; static inline void bus_unrefp(sd_bus **b) { @@ -217,3 +219,5 @@ const char *bus_message_type_to_string(uint8_t u); int bus_ensure_running(sd_bus *bus); int bus_start_running(sd_bus *bus); int bus_next_address(sd_bus *bus); + +bool bus_pid_changed(sd_bus *bus); |