]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-daemon: Replace SO_LINGER with shutdown() + recv() 32498/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 26 Apr 2024 13:02:56 +0000 (15:02 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 26 Apr 2024 13:11:38 +0000 (15:11 +0200)
commit13b67b61b3b4a5356f5d1b29b51137b8e336aa55
treeabe6b9f56eb16711ac231f8dfd13c58201915ecb
parentdcbf0be1b7c70537a932377d553d356366642b7f
sd-daemon: Replace SO_LINGER with shutdown() + recv()

Let's shutdown the write end and wait for EOF from the other side
before continuing to make sure that the receiver has received all
data we sent on the socket.
src/libsystemd/sd-daemon/sd-daemon.c