Make DEBUG_NOFORK a #if not #ifdef

This commit is contained in:
Matt Johnston 2020-05-21 22:58:56 +08:00
parent 5acee497bf
commit 2a81289ed3
2 changed files with 4 additions and 2 deletions

View File

@ -66,7 +66,9 @@ extern int debug_trace;
/* To debug with GDB it is easier to run with no forking of child processes.
You will need to pass "-F" as well. */
/* #define DEBUG_NOFORK */
#ifndef DEBUG_NOFORK
#define DEBUG_NOFORK 0
#endif
/* For testing as non-root on shadowed systems, include the crypt of a password

View File

@ -273,7 +273,7 @@ static void main_noinetd() {
goto out;
}
#ifdef DEBUG_NOFORK
#if DEBUG_NOFORK
fork_ret = 0;
#else
fork_ret = fork();