server: Cleanly shut down senders on exit.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 7 Aug 2017 19:11:26 +0000 (21:11 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 13 Mar 2018 02:28:10 +0000 (03:28 +0100)
commitac4e01ba1a2f302bf31dd511a7aff8da78660b15
tree44d0adbc16bd7cbd3ef26a855d77d9b451663dc3
parent17c140cc24838c2b7049e2b4c17621f4284d53dc
server: Cleanly shut down senders on exit.

This introduces ->shutdown for struct sender. Each of the three senders
implements the new method to close file descriptors and to deallocate
the resources occupied by the sender. The method is only called on
exit via the new vss_shutdown() from both server and command handler
context after schedule() returns.

We need to introduce another helper, process_is_command_handler(), to
distinguish between the two callers.
dccp_send.c
http_send.c
send.h
send_common.c
server.c
server.h
udp_send.c
vss.c
vss.h