Avoid child process to execute parent code
Avoid child process to execute parent code

Indenting the main control flow to avoid the child process to execute
parent code in certain situations, for example, using the 'quit' command
will make the child process to fall into that part of the code.

Signed-off-by: Luis Araujo <b6d7d6f4aa54f668b4b655090642bd1a1429cbcb@collabora.co.uk>

shanefagan/vehicle_signal_manager,GENIVI/vehicle_signal_manager,treitter/vehicle_signal_manager