aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/sftp.h
diff options
context:
space:
mode:
authorJon Simons <jon@jonsimons.org>2017-09-09 20:12:35 -0700
committerAndreas Schneider <asn@cryptomilk.org>2017-09-11 16:31:01 +0200
commit9003f92e8f3df333a033a345203a9f7a88917bdd (patch)
tree3529785b3a616df652aa76160a13561f191cf2ac /include/libssh/sftp.h
parent8d7563a9c3a02a05e09950cc5445d2c6bc2fc9aa (diff)
downloadlibssh-9003f92e8f3df333a033a345203a9f7a88917bdd.tar.gz
libssh-9003f92e8f3df333a033a345203a9f7a88917bdd.tar.xz
libssh-9003f92e8f3df333a033a345203a9f7a88917bdd.zip
pkd_daemon.c: force close pkd_state.server_fd upon stop
There's a race window between the accept loop's call to accept(2) and it checking `ctx.keep_going`. Forcefully close the server socket such that any raced `accept` ends up failing. Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh/sftp.h')
0 files changed, 0 insertions, 0 deletions