From: Thadeu Lima de Souza Cascardo Date: Wed, 27 Sep 2006 00:10:13 +0000 (+0000) Subject: Daemonized improxy X-Git-Tag: v0.1.3~121 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Frnetproxy.git;a=commitdiff_plain;h=2a4483d554b76399553345f47dd44d103a7ffa23 Daemonized improxy First thing improxy does is to detach from its controlling terminal, going into daemon mode. Since there is no portable way to do that (using GLib would be very nice), it calls the libc daemon function. --- diff --git a/improxy.c b/improxy.c index e69df59..cafc365 100644 --- a/improxy.c +++ b/improxy.c @@ -20,6 +20,7 @@ #include #include #include +#include #include "log.h" #include "nethook.h" #include "proto_detect.h" @@ -57,6 +58,8 @@ int main (int argc, char** argv) gchar* conf_address; gint port; + daemon (0, 0); + gnet_init (); im_log_init ();