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
dir.
Boris:
- 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