changeset 1677:e05c0e394f1d

Make DEBUG_NOFORK a #if not #ifdef
author Matt Johnston <matt@ucc.asn.au>
date Thu, 21 May 2020 22:58:56 +0800
parents d5cdc60db08e
children 4b4cfc92c5b7
files debug.h svr-main.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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();