server: make client connections fork off
authorJens Axboe <axboe@kernel.dk>
Mon, 19 Mar 2012 08:13:15 +0000 (09:13 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 19 Mar 2012 08:13:15 +0000 (09:13 +0100)
commit122c772599f1b0a3148a5790775698d3fa92cc10
treed77c44de149068cd288caed9eda72c9377068abf
parentf1a05d0fe78df144ebce6246ed0b2d5b350cf6c9
server: make client connections fork off

Instead of handling connections inline from the server, fork
them off before running them. This makes the able to handle
the idle loop command send/reply directly, without being
invoked from the idle loop.

New connections are forked off automatically as well, leaving
the server free to accept new connections. Not sure we want that,
or at least it should be an option to return BUSY on attempted
new connections.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
backend.c
client.c
client.h
server.c
server.h