diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-12-22 16:43:24 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-12-22 16:48:14 +0100 |
commit | f360b42ca11bdad01036b95ca1983533ed35c542 (patch) | |
tree | 6f0cb9de7197e542e8c0a6001666338b69028c6e /src/ctrl/Makefile.am | |
parent | aafc27ce37337bdca4a8e9db4e186b808585070a (diff) |
control_if: Close control connection socket/fd on read/write == 0
When read() or write() system calls return '0' on a stream socket,
it means that the connection has been closed ("EOF"). We must
accordingly close this socket and remove all related state.
Before this patch, every new CTRL connection would introduce a leak
of both some memory/state, as well as a file descriptor :(
Change-Id: I4fb70e5f123b37dece29f156c5f430c875e7cbaf
Diffstat (limited to 'src/ctrl/Makefile.am')
0 files changed, 0 insertions, 0 deletions