diff options
author | Renaud Métrich <rmetrich@redhat.com> | 2020-08-20 13:00:37 +0200 |
---|---|---|
committer | The Plumber <50238977+systemd-rhel-bot@users.noreply.github.com> | 2020-11-02 15:15:47 +0100 |
commit | 262544a451c11c38e92c45047ec2adeaeb2a0a7e (patch) | |
tree | eec905b3c597931df6bff6a15cd22aec2c98d7d2 /src/shared/bus-unit-util.c | |
parent | 588e3e8008d24021ec025d54318fb07d2212293c (diff) | |
download | systemd-262544a451c11c38e92c45047ec2adeaeb2a0a7e.tar.gz |
socket: New option 'FlushPending' (boolean) to flush socket before entering listening state
Disabled by default. When Enabled, before listening on the socket, flush the content.
Applies when Accept=no only.
(cherry picked from commit 3e5f04bf6468fcb79c080f02b0eab08f258bff0c)
Resolves: #1870638
Diffstat (limited to 'src/shared/bus-unit-util.c')
-rw-r--r-- | src/shared/bus-unit-util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/bus-unit-util.c b/src/shared/bus-unit-util.c index 77788f0fe2..7029aa5615 100644 --- a/src/shared/bus-unit-util.c +++ b/src/shared/bus-unit-util.c @@ -1468,7 +1468,8 @@ static int bus_append_socket_property(sd_bus_message *m, const char *field, cons if (STR_IN_SET(field, "Accept", "Writable", "KeepAlive", "NoDelay", "FreeBind", "Transparent", "Broadcast", - "PassCredentials", "PassSecurity", "ReusePort", "RemoveOnStop", "SELinuxContextFromNet")) + "PassCredentials", "PassSecurity", "ReusePort", "RemoveOnStop", "SELinuxContextFromNet", + "FlushPending")) return bus_append_parse_boolean(m, field, eq); |