# HG changeset patch # User Matt Johnston # Date 1590073136 -28800 # Node ID e05c0e394f1da866b839abbdc4ace41a28c11550 # Parent d5cdc60db08e920698344ebe9624dbe7f960a2c3 Make DEBUG_NOFORK a #if not #ifdef diff -r d5cdc60db08e -r e05c0e394f1d debug.h --- a/debug.h Tue May 19 00:31:41 2020 +0800 +++ b/debug.h Thu May 21 22:58:56 2020 +0800 @@ -66,7 +66,9 @@ /* 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 diff -r d5cdc60db08e -r e05c0e394f1d svr-main.c --- a/svr-main.c Tue May 19 00:31:41 2020 +0800 +++ b/svr-main.c Thu May 21 22:58:56 2020 +0800 @@ -273,7 +273,7 @@ goto out; } -#ifdef DEBUG_NOFORK +#if DEBUG_NOFORK fork_ret = 0; #else fork_ret = fork();