X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fprocess.c;h=6158fbab6874c4e25019c9ac261c02d336fea719;hb=603781831f251d2e8111e8282d8e624b8e40b175;hp=695f1f7ed9a757d7239c522f51839b02a075aa8e;hpb=4c502b005bfd24821e817c134e8a442a5f4606de;p=tinc diff --git a/src/process.c b/src/process.c index 695f1f7e..6158fbab 100644 --- a/src/process.c +++ b/src/process.c @@ -1,7 +1,7 @@ /* process.c -- process management functions - Copyright (C) 1999,2000 Ivo Timmermans , - 2000 Guus Sliepen + Copyright (C) 1999-2001 Ivo Timmermans , + 2000,2001 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: process.c,v 1.1.2.17 2000/11/28 08:59:27 zarq Exp $ + $Id: process.c,v 1.1.2.20 2001/01/07 17:09:02 guus Exp $ */ #include "config.h" @@ -35,7 +35,6 @@ #include #include -#include #include #include #include @@ -159,6 +158,8 @@ cp /* If we succeeded in doing that, detach */ + closelog(); + if(do_detach) { if(daemon(0, 0) < 0)