invert detach flag meaning to lessen the confusion
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11298 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -42,7 +42,7 @@ sig_atomic_t exit_flag = 0;
|
|||||||
krb5_context context;
|
krb5_context context;
|
||||||
|
|
||||||
#ifdef HAVE_DAEMON
|
#ifdef HAVE_DAEMON
|
||||||
int no_detach = 1;
|
extern int detach_from_console;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static RETSIGTYPE
|
static RETSIGTYPE
|
||||||
@@ -104,7 +104,7 @@ main(int argc, char **argv)
|
|||||||
signal(SIGTERM, sigterm);
|
signal(SIGTERM, sigterm);
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_DAEMON
|
#ifdef HAVE_DAEMON
|
||||||
if (!no_detach)
|
if (detach_from_console)
|
||||||
daemon(0, 0);
|
daemon(0, 0);
|
||||||
#endif
|
#endif
|
||||||
pidfile(NULL);
|
pidfile(NULL);
|
||||||
|
Reference in New Issue
Block a user