Don't test HAVE_DAEMON since roken supplies it.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15213 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-05-23 17:39:35 +00:00
parent 78103d6bc6
commit af6eb0f463
5 changed files with 3 additions and 31 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997-2002 Kungliga Tekniska H<>gskolan
* Copyright (c) 1997-2002, 2004-2005 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -41,9 +41,7 @@ RCSID("$Id$");
sig_atomic_t exit_flag = 0;
krb5_context context;
#ifdef HAVE_DAEMON
extern int detach_from_console;
#endif
static RETSIGTYPE
sigterm(int sig)
@@ -107,10 +105,8 @@ main(int argc, char **argv)
signal(SIGTERM, sigterm);
signal(SIGPIPE, SIG_IGN);
#endif
#ifdef HAVE_DAEMON
if (detach_from_console)
daemon(0, 0);
#endif
pidfile(NULL);
loop();
krb5_free_context(context);