diff options
Diffstat (limited to 'sesman/sig.c')
-rw-r--r-- | sesman/sig.c | 3 |
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(); |