dbus merge requestshttps://gitlab.freedesktop.org/dbus/dbus/-/merge_requests2022-07-13T19:07:20Zhttps://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/283Use stdint.h types for fixed-size integers2022-07-13T19:07:20ZAlexander RichardsonUse stdint.h types for fixed-size integersAll supported compilers provide a stdint.h header, so we can use this
instead of relying on autotools/cmake checks. In theory this could break
the ABI due to C++ name mangling changes if dbus_int64_t changes between
`long long` and `long...All supported compilers provide a stdint.h header, so we can use this
instead of relying on autotools/cmake checks. In theory this could break
the ABI due to C++ name mangling changes if dbus_int64_t changes between
`long long` and `long`. However, it appears the only affected platform is
macOS where that level of binary compatibility is not guaranteed.https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/176use poll() to find open fds, removes malloc() after fork()2022-03-02T13:17:39ZJean-Louis Fuchsuse poll() to find open fds, removes malloc() after fork()Resolves issue #173: libdbus calls malloc() after fork(), causing clients to
deadlock
calling malloc() after fork is undefined behaviour if the process multi-threaded. The new code is a commonly used performance workaround for the fork-...Resolves issue #173: libdbus calls malloc() after fork(), causing clients to
deadlock
calling malloc() after fork is undefined behaviour if the process multi-threaded. The new code is a commonly used performance workaround for the fork-and-close pattern and uses only async-signal safe functions. See signal-safety(7).
I currently use this patch with 1.12.20. Another example where it is used is [openjdk8]( https://gitlab.alpinelinux.org/alpine/aports/-/blob/f10a27abc4a038853c5b0f74655a1ca75356c93a/community/openjdk8/icedtea-jdk-close-fds.patch) on alpine linux.