mirror of
https://github.com/clearml/dropbear
synced 2025-04-21 22:54:48 +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.
|
/* To debug with GDB it is easier to run with no forking of child processes.
|
||||||
You will need to pass "-F" as well. */
|
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
|
/* For testing as non-root on shadowed systems, include the crypt of a password
|
||||||
|
@ -273,7 +273,7 @@ static void main_noinetd() {
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG_NOFORK
|
#if DEBUG_NOFORK
|
||||||
fork_ret = 0;
|
fork_ret = 0;
|
||||||
#else
|
#else
|
||||||
fork_ret = fork();
|
fork_ret = fork();
|
||||||
|
Loading…
Reference in New Issue
Block a user