mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 02:46:58 +00:00
Make DEBUG_NOFORK a #if not #ifdef
This commit is contained in:
parent
5acee497bf
commit
2a81289ed3
4
debug.h
4
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
|
||||
|
@ -273,7 +273,7 @@ static void main_noinetd() {
|
||||
goto out;
|
||||
}
|
||||
|
||||
#ifdef DEBUG_NOFORK
|
||||
#if DEBUG_NOFORK
|
||||
fork_ret = 0;
|
||||
#else
|
||||
fork_ret = fork();
|
||||
|
Loading…
Reference in New Issue
Block a user