]> git.ipfire.org Git - thirdparty/systemd.git/commit - man/systemd.service.xml
core: only apply NonBlocking= to fds passed via socket activation
authorFranck Bui <fbui@suse.com>
Fri, 12 May 2017 09:32:53 +0000 (11:32 +0200)
committerFranck Bui <fbui@suse.com>
Tue, 6 Jun 2017 20:42:50 +0000 (22:42 +0200)
commit9b1419111aee0f4dca07593bd8e6db4ed94ce141
treec3e19e1e9fa5b5f784504ee0ae3098b82cc8e86b
parentfbcc7f4168827bf7c956bd83eaa42e1f449e95bd
core: only apply NonBlocking= to fds passed via socket activation

Make sure to only apply the O_NONBLOCK flag to the fds passed via socket
activation.

Previously the flag was also applied to the fds which came from the fd store
but this was incorrect since services, after being restarted, expect that these
passed fds have their flags unchanged and can be reused as before.

The documentation was a bit unclear about this so clarify it.
man/systemd.service.xml
src/core/execute.c
src/core/execute.h
src/core/service.c