diff options
author | Matt Johnston <matt@ucc.asn.au> | 2020-05-21 22:58:56 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2020-05-21 22:58:56 +0800 |
commit | 34f5dbc26103e20ee1a458e6bd694ee968fc5309 (patch) | |
tree | 3bf0b1722ac0c40d3c954f078af3e1894308d8f3 | |
parent | 67418e654f554f51d671893de1b073ce833520a9 (diff) | |
download | dropbear-34f5dbc26103e20ee1a458e6bd694ee968fc5309.tar.gz |
Make DEBUG_NOFORK a #if not #ifdef
-rw-r--r-- | debug.h | 4 | ||||
-rw-r--r-- | svr-main.c | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -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 @@ -273,7 +273,7 @@ static void main_noinetd() { goto out; } -#ifdef DEBUG_NOFORK +#if DEBUG_NOFORK fork_ret = 0; #else fork_ret = fork(); |