From 2a81289ed32d9e1ca612a41975974bfa258d2ace Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Thu, 21 May 2020 22:58:56 +0800 Subject: Make DEBUG_NOFORK a #if not #ifdef --- debug.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'debug.h') 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 -- cgit v1.2.3 From 846b8cdbf7929ba9fe7f44557722ecc6dbea3cd9 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Fri, 29 May 2020 23:32:19 +0800 Subject: Remove unused DEBUG_FORKGPROF --- debug.h | 6 ------ svr-main.c | 5 ----- 2 files changed, 11 deletions(-) (limited to 'debug.h') diff --git a/debug.h b/debug.h index 403449b..e1739e8 100644 --- a/debug.h +++ b/debug.h @@ -43,12 +43,6 @@ #define CHECKCLEARTOWRITE() #endif -/* Define this, compile with -pg and set GMON_OUT_PREFIX=gmon to get gmon - * output when Dropbear forks. This will allow it gprof to be used. - * It's useful to run dropbear -F, so you don't fork as much */ -/* (This is Linux specific) */ -/*#define DEBUG_FORKGPROF*/ - /* A couple of flags, not usually useful, and mightn't do anything */ /*#define DEBUG_KEXHASH*/ diff --git a/svr-main.c b/svr-main.c index 00f854f..9b3a162 100644 --- a/svr-main.c +++ b/svr-main.c @@ -296,11 +296,6 @@ static void main_noinetd() { } else { /* child */ -#ifdef DEBUG_FORKGPROF - extern void _start(void), etext(void); - monstartup((u_long)&_start, (u_long)&etext); -#endif /* DEBUG_FORKGPROF */ - getaddrstring(&remoteaddr, NULL, &remote_port, 0); dropbear_log(LOG_INFO, "Child connection from %s:%s", remote_host, remote_port); m_free(remote_host); -- cgit v1.2.3