From: Alan Jenkins Date: Sat, 20 Jan 2018 03:02:50 +0000 (+0000) Subject: man: sd_journal_stream_fd: no, fds are not shared (#7926) X-Git-Tag: v237~70 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bf105e38d5715cc10f9619c5385a16898d568527;p=platform%2Fupstream%2Fsystemd.git man: sd_journal_stream_fd: no, fds are not shared (#7926) sd_journal_stream_fd() does not return the same file descriptor across different calls. It can't possibly do so, because the file descriptor is created using certain parameters passed by the caller. Also the implementation clearly isn't doing this, it's just connecting to a unix socket. It opens exactly one file descriptor, and does not close it unless there is a write failure. Nothing like "temporarily multiple file descriptors may be open". --- diff --git a/man/sd_journal_stream_fd.xml b/man/sd_journal_stream_fd.xml index 29d64f9..89ad8f5 100644 --- a/man/sd_journal_stream_fd.xml +++ b/man/sd_journal_stream_fd.xml @@ -107,8 +107,7 @@ Notes Function sd_journal_stream_fd() is thread-safe and may be called - from multiple threads. All calls will return the same file descriptor, although temporarily - multiple file descriptors may be open. + from multiple threads. The sd_journal_stream_fd() interface is available as a shared library, which can be compiled and linked to