From 62a4403dd408f86f6a5d7e9750a2f213e6b95224 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Tue, 28 May 2013 11:54:44 -0700 Subject: sesman: cleanup, close xrdp to sesman socket listener when starting a session / forking --- sesman/session.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sesman/session.c b/sesman/session.c index 278c6547..3a200f50 100644 --- a/sesman/session.c +++ b/sesman/session.c @@ -33,6 +33,7 @@ extern tbus g_sync_event; extern unsigned char g_fixedkey[8]; extern struct config_sesman *g_cfg; /* in sesman.c */ +extern int g_sck; /* in sesman.c */ extern int g_thread_sck; /* in thread.c */ struct session_chain *g_sessions; int g_session_count; @@ -450,6 +451,7 @@ session_start_fork(int width, int height, int bpp, char *username, } else if (pid == 0) /* child sesman */ { + g_tcp_close(g_sck); g_tcp_close(g_thread_sck); auth_start_session(data, display); g_sprintf(geometry, "%dx%d", width, height); -- cgit v1.2.1