main: improve start
authorJosé Bollo <jose.bollo@iot.bzh>
Wed, 5 Jul 2017 12:35:05 +0000 (14:35 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Wed, 5 Jul 2017 13:54:40 +0000 (15:54 +0200)
commitf7d18b11a1639e1ccce3bc94875255d7aff87d4a
treeab2bad93c14525e28eec52be125a7978e48fd1c3
parentd52ab895eb35c2b13eef55b903b54797dff7d903
main: improve start

1: emits the correct PID even if daemonized

2: run the startup calls before executing the client (if any)

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