/*
process.c -- process management functions
- Copyright (C) 1999,2000 Ivo Timmermans <itimmermans@bigfoot.com>,
- 2000 Guus Sliepen <guus@sliepen.warande.net>
+ Copyright (C) 1999-2001 Ivo Timmermans <itimmermans@bigfoot.com>,
+ 2000,2001 Guus Sliepen <guus@sliepen.warande.net>
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
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"
#include <unistd.h>
#include <termios.h>
-#include <list.h>
#include <pidfile.h>
#include <utils.h>
#include <xalloc.h>
/* If we succeeded in doing that, detach */
+ closelog();
+
if(do_detach)
{
if(daemon(0, 0) < 0)