diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-11-13 18:26:04 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-11-27 17:04:04 +0100 |
commit | e78ee06de1011aaa8de7a60d98fc18daee2edb26 (patch) | |
tree | f30edb4550a0ffc68da532d0eff0de4f470fa857 /src/systemd/sd-daemon.h | |
parent | 8d1ab18a466b44a8641899f871fa322e395fdd36 (diff) | |
download | systemd-e78ee06de1011aaa8de7a60d98fc18daee2edb26.tar.gz |
core: add a new sd_notify() message for removing fds from the FD store again
Currenly the only way to remove fds from the fdstore is to fully
stop the service, or to somehow trigger POLLERR/POLLHUP on the fd, in
which case systemd will remove the fd automatically.
Let's add another way: a new message that can be sent to remove fds
explicitly, given their name.
Diffstat (limited to 'src/systemd/sd-daemon.h')
-rw-r--r-- | src/systemd/sd-daemon.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/systemd/sd-daemon.h b/src/systemd/sd-daemon.h index 3fd0cc60e3..9772a05dad 100644 --- a/src/systemd/sd-daemon.h +++ b/src/systemd/sd-daemon.h @@ -222,6 +222,15 @@ int sd_is_mq(int fd, const char *path); invocation. This variable is only supported with sd_pid_notify_with_fds(). + FDSTOREREMOVE=1 + Remove one or more file descriptors from the file + descriptor store, identified by the name specified + in FDNAME=, see below. + + FDNAME= A name to assign to new file descriptors stored in the + file descriptor store, or the name of the file descriptors + to remove in case of FDSTOREREMOVE=1. + Daemons can choose to send additional variables. However, it is recommended to prefix variable names not listed above with X_. |