]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: rework how we flush incoming traffic when a socket unit goes down 3202/head
authorLennart Poettering <lennart@poettering.net>
Fri, 6 May 2016 11:29:26 +0000 (13:29 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 6 May 2016 11:29:26 +0000 (13:29 +0200)
commit60d9771c593e0702a892a4372443e63b38cdbcba
tree8c9e737e8ada747d89705e68e6b136cba0365bf1
parent01a8b4675739463b8d6abf0931099b244c6f072b
core: rework how we flush incoming traffic when a socket unit goes down

Previously, we'd simply close and reopen the socket file descriptors. This is
problematic however, as we won't transition through the SOCKET_CHOWN state
then, and thus the file ownership won't be correct for the sockets.

Rework the flushing logic, and actually read any queued data from the sockets
for flushing, and accept any queued messages and disconnect them.
src/basic/io-util.c
src/basic/socket-util.c
src/basic/socket-util.h
src/core/socket.c