]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-journal: introduce SD_JOURNAL_TAKE_DIRECTORY_FD flag for sd_journal_open_directory...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 5 Jul 2023 00:49:45 +0000 (09:49 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 5 Jul 2023 15:06:20 +0000 (00:06 +0900)
commit4a45a2e0e3ac748bfe71be4ff32d1d85bfaeca1e
tree2c1bdff1822d6fe2c013520c0f86ba539795d9fa
parent12fff85d55fb107c675255d033ef6cce370d59e2
sd-journal: introduce SD_JOURNAL_TAKE_DIRECTORY_FD flag for sd_journal_open_directory_fd()

If it is called with the flag, then the provided file descriptor will be
owned by the sd_journal object, and will be closed in sd_journal_close().
man/sd_journal_open.xml
src/libsystemd/sd-journal/sd-journal.c
src/systemd/sd-journal.h