mirror of
https://github.com/systemd/systemd
synced 2024-07-21 10:17:21 +00:00
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".
This commit is contained in:
parent
18e3beac2f
commit
bf105e38d5
|
@ -107,8 +107,7 @@
|
|||
<title>Notes</title>
|
||||
|
||||
<para>Function <function>sd_journal_stream_fd()</function> 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.</para>
|
||||
from multiple threads.</para>
|
||||
|
||||
<para>The <function>sd_journal_stream_fd()</function> interface is
|
||||
available as a shared library, which can be compiled and linked to
|
||||
|
|
Loading…
Reference in a new issue