diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2013-05-28 10:44:04 -0700 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2013-05-28 10:44:04 -0700 |
commit | 75f4c3ca584b30b6e7f44dfec0da0845de43a166 (patch) | |
tree | 44e2bd2cd33054bd3b83829dfce7376d1e0b54f0 /sesman | |
parent | 64d821461c2291ddcc0ddd30bb779c9aec173e53 (diff) | |
download | xrdp-proprietary-75f4c3ca584b30b6e7f44dfec0da0845de43a166.tar.gz xrdp-proprietary-75f4c3ca584b30b6e7f44dfec0da0845de43a166.zip |
sesman: cleanup, close xrdp to sesman socket when starting a session / forking
Diffstat (limited to 'sesman')
-rw-r--r-- | sesman/session.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sesman/session.c b/sesman/session.c index 6f98fbc7..278c6547 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_thread_sck; /* in thread.c */ struct session_chain *g_sessions; int g_session_count; @@ -449,6 +450,7 @@ session_start_fork(int width, int height, int bpp, char *username, } else if (pid == 0) /* child sesman */ { + g_tcp_close(g_thread_sck); auth_start_session(data, display); g_sprintf(geometry, "%dx%d", width, height); g_sprintf(depth, "%d", bpp); |