man: sd_journal_stream_fd: no, fds are not shared (#7926)
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Sat, 20 Jan 2018 03:02:50 +0000 (03:02 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 20 Jan 2018 03:02:50 +0000 (14:02 +1100)
commitbf105e38d5715cc10f9619c5385a16898d568527
tree6f7fdd47bff2f41d1631a3f88aa3e414b02d10b3
parent18e3beac2faee3a2cd18e4d31ee04d190b761039
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".
man/sd_journal_stream_fd.xml