summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2020-05-29 23:32:19 +0800
committerMatt Johnston <matt@ucc.asn.au>2020-05-29 23:32:19 +0800
commit943b864dc5e3fc555d0e6eac08705583eaefde34 (patch)
tree35177a05573f841636219692bfe9aa7de42753af
parent38a32b6ec126806c989034a4036bc8a1be83b928 (diff)
downloaddropbear-943b864dc5e3fc555d0e6eac08705583eaefde34.tar.gz
Remove unused DEBUG_FORKGPROF
-rw-r--r--debug.h6
-rw-r--r--svr-main.c5
2 files changed, 0 insertions, 11 deletions
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);