added a new cli option --daemonize

This option forks the process and generates a new session. This
effectively detaches it from the shell. Don't forget to redirect stderr
or use syslog for logging!
This commit is contained in:
Christian Kruse
2014-01-08 11:53:15 +01:00
parent 9fe2d6886e
commit 920f925e4b
2 changed files with 32 additions and 1 deletions

View File

@@ -35,5 +35,6 @@
#define ERR_STR_OVERFLOW 10
#define ERR_FAILOVER_FAIL 11
#define ERR_BAD_SSH 12
#define ERR_SYS_FAILURE 13
#endif /* _ERRCODE_H_ */