[systemd-devel] is fd = journal_fd() common across all daemons

Lennart Poettering lennart at poettering.net
Mon Jul 29 07:05:11 UTC 2019


On So, 28.07.19 21:25, Vaibhav Dahiya (vdahiya at ncsu.edu) wrote:

> Hello ,
>
> My question is related to changing some flags on fd = journal_fd(),
> basically
> I want to make this socket descriptor to get a flag for non-blocking.
> As I am preparing a patch for this. I have generic query , is this common
> across all the daemons ?
> Meaning setting a flag to fd will likely cause each daemon to take
> necessary
> provisions like message drops etc ?
> Looking at the code i could not get a clarity so I just wanted to ask.

No, each client linking to libsystemd gets its own socket fd.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list