Treat correctly running/not running status 79/17679/1 6.0.2 flounder/6.0.2 flounder_6.0.2
authorJosé Bollo <jose.bollo@iot.bzh>
Mon, 5 Nov 2018 17:14:15 +0000 (18:14 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Mon, 5 Nov 2018 17:21:52 +0000 (18:21 +0100)
commite54b1f24aecedfccbb188dcbc9a7a9490cc248a8
tree676f30b8d28011a1fb79369d6834dc8948ce9f20
parente30b5998910afc888c9b4a79afb47e5d3fe4b3c4
Treat correctly running/not running status

Systemd returns 0 for services that don't run.
It wasn't checked well causing weird effect:
trying to terminate an application not running
killed afm-system-daemon because kill(0) kills
all processes of the group of the caller.

Bug-AGL: SPEC-1836

Change-Id: I1bd64faf871ecd42aaaa5449312e8b8cb26ee9dd
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afm-binding.c
src/afm-urun.c