summaryrefslogtreecommitdiff
path: root/svr-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'svr-main.c')
-rw-r--r--svr-main.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/svr-main.c b/svr-main.c
index 0a39b70..52ac9ff 100644
--- a/svr-main.c
+++ b/svr-main.c
@@ -80,9 +80,11 @@ int main(int argc, char ** argv)
static void main_inetd() {
char *host, *port = NULL;
- /* Set up handlers, syslog, seed random */
+ /* Set up handlers, syslog */
commonsetup();
+ seedrandom();
+
#if DEBUG_TRACE
if (debug_trace) {
/* -v output goes to stderr which would get sent over the inetd network socket */
@@ -273,7 +275,7 @@ static void main_noinetd() {
goto out;
}
-#ifdef DEBUG_NOFORK
+#if DEBUG_NOFORK
fork_ret = 0;
#else
fork_ret = fork();
@@ -296,11 +298,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);
@@ -404,8 +401,6 @@ static void commonsetup() {
/* Now we can setup the hostkeys - needs to be after logging is on,
* otherwise we might end up blatting error messages to the socket */
load_all_hostkeys();
-
- seedrandom();
}
/* Set up listening sockets for all the requested ports */