Displaying 6 results from an estimated 6 matches for "sd_listen_fds_with_names".
2023 Mar 24
4
[libnbd PATCH v3 19/19] socket activation: set LISTEN_FDNAMES
...nder specific conditions, the following automatic file descriptor names are returned:
>
> [...]
> "unknown" -- The process received no name for the specific file
> descriptor from the service manager.
> [...]
I've also checked the implementation of sd_listen_fds_with_names():
https://github.com/systemd/systemd/blob/main/src/libsystemd/sd-daemon/sd-daemon.c
Let me quote the function:
> _public_ int sd_listen_fds_with_names(int unset_environment, char ***names) {
> _cleanup_strv_free_ char **l = NULL;
> bool have_names;
> int n_...
2023 Mar 24
2
[libnbd PATCH v3 19/19] socket activation: set LISTEN_FDNAMES
...wing automatic file descriptor names are returned:
> >
> > [...]
> > "unknown" -- The process received no name for the specific file
> > descriptor from the service manager.
> > [...]
>
> I've also checked the implementation of sd_listen_fds_with_names():
>
> https://github.com/systemd/systemd/blob/main/src/libsystemd/sd-daemon/sd-daemon.c
>
...
>
> (2) If we pass LISTEN_PID=xxx and LISTEN_FDS=1, and just "pass through"
> an *inherited* LISTEN_FDNAMES variable, then it will (in the general
> case) confu...
2023 Mar 23
1
[libnbd PATCH v3 19/19] socket activation: set LISTEN_FDNAMES
On Thu, Mar 23, 2023 at 01:10:16PM +0100, Laszlo Ersek wrote:
> When the user calls nbd_set_socket_activation_name before calling
> nbd_connect_system_socket_activation, pass the name down to the server
> through LISTEN_FDNAMES. This has no effect unless the new API has
> been called to set the socket name to a non-empty string.
>
>
2023 Jan 31
2
[PATCH libnbd v2 3/4] generator: Add APIs to get/set the socket activation socket name
...When used in combination with FDSTORE=1, specifies a name for the
> submitted file descriptors. When used with FDSTOREREMOVE=1,
> specifies the name for the file descriptors to remove. This name
> is passed to the service during activation, and may be queried
> using sd_listen_fds_with_names(3). File descriptors submitted
> without this field set, will implicitly get the name "stored"
> assigned. Note that, if multiple file descriptors are submitted at
> once, the specified name will be assigned to all of them. In order
> to assign different names...
2023 Jan 31
1
[PATCH libnbd v2 3/4] generator: Add APIs to get/set the socket activation socket name
...fds.html
FDNAME=?
When used in combination with FDSTORE=1, specifies a name for the
submitted file descriptors. When used with FDSTOREREMOVE=1,
specifies the name for the file descriptors to remove. This name
is passed to the service during activation, and may be queried
using sd_listen_fds_with_names(3). File descriptors submitted
without this field set, will implicitly get the name "stored"
assigned. Note that, if multiple file descriptors are submitted at
once, the specified name will be assigned to all of them. In order
to assign different names to submitted file de...
2023 Jan 30
2
[PATCH libnbd v2 3/4] generator: Add APIs to get/set the socket activation socket name
To allow us to name the socket passed down to the NBD server when
calling nbd_connect_systemd_socket_activation(3), we need to add the
field to the handle and add access functions.
---
generator/API.ml | 49 ++++++++++++++++++++++++++++++++++++++++++
lib/handle.c | 56 ++++++++++++++++++++++++++++++++++++++++++++++++
lib/internal.h | 1 +
3 files changed, 106 insertions(+)
diff --git