From 2a4483d554b76399553345f47dd44d103a7ffa23 Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Wed, 27 Sep 2006 00:10:13 +0000 Subject: [PATCH] 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. --- improxy.c | 3 +++ 1 file changed, 3 insertions(+) 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 (); -- 2.20.1