http-svc: refactor of httpdLoop
authorJosé Bollo <jose.bollo@iot.bzh>
Mon, 25 Jan 2016 09:38:04 +0000 (10:38 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Mon, 25 Jan 2016 10:36:15 +0000 (11:36 +0100)
commit9b0f0c14da41424fc0ab50cc9a71499dcb307bd0
tree7c0b6971b917d7d5368a92ce8e1aa007fb57cd52
parent181efe6b62e3c4fa8293d501719fa5934cb0f59c
http-svc: refactor of httpdLoop

Reading stdin drives to problems when afb-daemon
is launched with its input either closed or
connected to /dev/null.

Conversely, launching afb-daemon with the option
--daemon is not always possible because it really
daemonizes itself what forbids to control it
or its group directly.

Change-Id: I182741226762110809e50d68154f5d29d133303b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/http-svc.c
src/main.c