Systemd/src/libsystemd
Nathaniel McCallum ab93297cd0 Add fd close support to sd_event_source
It is often the case that a file descriptor and its corresponding IO
sd_event_source share a life span. When this is the case, developers will
have to unref the event source and close the file descriptor. Instead, we
can just have the event source take ownership of the file descriptor and
close it when the event source is freed. This is especially useful when
combined with cleanup attributes and sd_event_source_unrefp().

This patch adds two new public functions:

    sd_event_source_get_io_fd_own()
    sd_event_source_set_io_fd_own()
2018-01-24 17:57:27 +01:00
..
sd-bus Add support for SD_BUS_DEFAULT* 2018-01-23 09:40:25 -05:00
sd-daemon Merge pull request #7816 from poettering/chase-pid 2018-01-15 14:14:34 +04:00
sd-device sd-device: support the case that /sys is a symlink 2018-01-08 01:36:08 +09:00
sd-event Add fd close support to sd_event_source 2018-01-24 17:57:27 +01:00
sd-hwdb Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-id128 log: minimize includes in log.h 2018-01-11 14:44:31 +01:00
sd-login io-util: make flush_fd() return how many bytes where flushed 2018-01-05 13:55:08 +01:00
sd-netlink local-addresses: handle gracefully if routes lack an RTA_OIF attribute 2018-01-23 15:48:28 +01:00
sd-network tree-wide: make use of new STRLEN() macro everywhere (#7639) 2017-12-14 19:02:29 +01:00
sd-path Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-resolve test-resolve: check return value 2018-01-21 19:38:33 +09:00
sd-utf8 Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
libsystemd.pc.in Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
libsystemd.sym Add fd close support to sd_event_source 2018-01-24 17:57:27 +01:00
meson.build sd-bus: drop bloom stuff, it's not needed anymore since kdbus is gone 2018-01-11 14:44:31 +01:00