From 7889ee638e2d9549d6cb98a82365405c66f74fec Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Sun, 27 Sep 2015 01:26:22 -0700 Subject: [PATCH] sesman: close sync and term sockets after fork --- sesman/session.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sesman/session.c b/sesman/session.c index fdd0c4fe..b2105ab0 100644 --- a/sesman/session.c +++ b/sesman/session.c @@ -43,6 +43,9 @@ extern int g_thread_sck; /* in thread.c */ struct session_chain *g_sessions; int g_session_count; +extern tbus g_term_event; /* in sesman.c */ +extern tbus g_sync_event; /* in sesman.c */ + static int g_sync_width; static int g_sync_height; static int g_sync_bpp; @@ -525,6 +528,8 @@ session_start_fork(int width, int height, int bpp, char *username, } else if (pid == 0) /* child sesman */ { + g_tcp_close(g_term_event); + g_tcp_close(g_sync_event); g_tcp_close(g_sck); g_tcp_close(g_thread_sck); g_sprintf(geometry, "%dx%d", width, height);