summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2020-05-21 22:58:56 +0800
committerMatt Johnston <matt@ucc.asn.au>2020-05-21 22:58:56 +0800
commit34f5dbc26103e20ee1a458e6bd694ee968fc5309 (patch)
tree3bf0b1722ac0c40d3c954f078af3e1894308d8f3
parent67418e654f554f51d671893de1b073ce833520a9 (diff)
downloaddropbear-34f5dbc26103e20ee1a458e6bd694ee968fc5309.tar.gz
Make DEBUG_NOFORK a #if not #ifdef
-rw-r--r--debug.h4
-rw-r--r--svr-main.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/debug.h b/debug.h
index 8659b5c..403449b 100644
--- a/debug.h
+++ b/debug.h
@@ -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
diff --git a/svr-main.c b/svr-main.c
index 0a39b70..00f854f 100644
--- a/svr-main.c
+++ b/svr-main.c
@@ -273,7 +273,7 @@ static void main_noinetd() {
goto out;
}
-#ifdef DEBUG_NOFORK
+#if DEBUG_NOFORK
fork_ret = 0;
#else
fork_ret = fork();