From b457fec36399c1f7de093d5e92bb4fa453b79c86 Mon Sep 17 00:00:00 2001 From: Jakub Sławiński Date: Sun, 5 Feb 2006 15:14:03 +0100 Subject: v0.8 - Fixed: infinite loop after buffering message - Fixed: corrupt packets after closing connections in the stopped state - Fixed: bug in mapping user numbers between afclient and afserver - Fixed: premature close of the service connection - Fixed: invalid buffering when the connection is closing - Added: Multiple tunnels in one afclient<->afserver connection --- src/daemon.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/daemon.c') diff --git a/src/daemon.c b/src/daemon.c index 7126981..0e2db7e 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -25,6 +25,18 @@ #ifndef HAVE_THIS_DAEMON #define HAVE_THIS_DAEMON +/* + * Function name: daemon + * Description: Enters into daemon mode. It's the emulation of the daemon + * function from the system. + * Arguments: nochdir - when 0, the directory will be changed to /, otherwise + * the directory will be unchanged + * noclose - when 0, the standard streams will be closed, otherwise + * the streams will be unchanged + * Returns: 0 - success, + * -1 - failure. + */ + int daemon(int nochdir, int noclose) { -- cgit v1.1