chiark / gitweb /
core: rework how we flush incoming traffic when a socket unit goes down
authorLennart Poettering <lennart@poettering.net>
Fri, 6 May 2016 11:29:26 +0000 (13:29 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:58 +0000 (10:12 +0200)
commit5489ba3e334d21609a042d5dc1615323f2903181
tree74a66114654c4971d320566b698457af03cb9430
parent0cac4e30259e4d9b8654f19bc252042a575705ba
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