rasd: Daemonize the process

The process is put in the background and is detached from the
TTYs. The process working dir is set to '/'.
stdin, stdout and stderr are closed and cannot be used anymore.

Note: the config file 'rasd.cfg' is expected in the working

 - simplify error paths
 - cleanup excessive comments

Signed-off-by: Jean Pihet <jean.pihet@linaro.org>
Link: http://lkml.kernel.org/r/1412933690-25576-12-git-send-email-jean.pihet@linaro.org
Signed-off-by: Borislav Petkov <bp@suse.de>
1 file changed
tree: 88d4f323c8488c0ffe84ad222e77761db2ddc60c
  1. include/
  2. src/
  3. .gitignore