summaryrefslogtreecommitdiffstats
path: root/sesman/sig.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2008-12-28 08:15:40 +0000
committerjsorg71 <jsorg71>2008-12-28 08:15:40 +0000
commit13ac4186c67e1373ab6271aef054315279b99b8b (patch)
treed68c3361c43cda623767533ae07a6e2b6245335d /sesman/sig.c
parent18600b093eea5375861ade7e12bbd9c541eff6ed (diff)
downloadxrdp-proprietary-13ac4186c67e1373ab6271aef054315279b99b8b.tar.gz
xrdp-proprietary-13ac4186c67e1373ab6271aef054315279b99b8b.zip
quiet them main loop of sesman
Diffstat (limited to 'sesman/sig.c')
-rw-r--r--sesman/sig.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sesman/sig.c b/sesman/sig.c
index 806e9b8f..7405b024 100644
--- a/sesman/sig.c
+++ b/sesman/sig.c
@@ -32,6 +32,7 @@
extern int g_sck;
extern int g_pid;
extern struct config_sesman* g_cfg;
+extern tbus g_term_event;
/******************************************************************************/
void DEFAULT_CC
@@ -47,6 +48,8 @@ sig_sesman_shutdown(int sig)
LOG_DBG(&(g_cfg->log), " - getting signal %d pid %d", sig, g_getpid());
+ g_set_wait_obj(g_term_event);
+
g_tcp_close(g_sck);
session_sigkill_all();