summaryrefslogtreecommitdiffhomepage
path: root/svr-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'svr-main.c')
-rw-r--r--svr-main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/svr-main.c b/svr-main.c
index c4b8c48..73b281b 100644
--- a/svr-main.c
+++ b/svr-main.c
@@ -137,6 +137,11 @@ void main_noinetd() {
dropbear_exit("No listening ports available.");
}
+ for (i = 0; i < listensockcount; i++) {
+ set_sock_priority(listensocks[i], DROPBEAR_PRIO_LOWDELAY);
+ FD_SET(listensocks[i], &fds);
+ }
+
/* fork */
if (svr_opts.forkbg) {
int closefds = 0;