diff options
author | ilsimo <ilsimo> | 2007-04-07 16:20:08 +0000 |
---|---|---|
committer | ilsimo <ilsimo> | 2007-04-07 16:20:08 +0000 |
commit | 9c4b9f8390c992a7b08fd487e17b6067571dfa52 (patch) | |
tree | b73d470ef843f79c8ba7421af963fa29e0a9dd2f /sesman/sig.c | |
parent | e9a9c8dc97124148365ae1cc8d7c2044136fc720 (diff) | |
download | xrdp-proprietary-9c4b9f8390c992a7b08fd487e17b6067571dfa52.tar.gz xrdp-proprietary-9c4b9f8390c992a7b08fd487e17b6067571dfa52.zip |
added sessvc as session supervisor
first code for password changing
Diffstat (limited to 'sesman/sig.c')
-rw-r--r-- | sesman/sig.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sesman/sig.c b/sesman/sig.c index b69f6f27..f66827cd 100644 --- a/sesman/sig.c +++ b/sesman/sig.c @@ -22,7 +22,7 @@ * @file sig.c * @brief signal handling functions * @author Jay Sorg, Simone Fedele - * + * */ #include "sesman.h" @@ -49,6 +49,8 @@ sig_sesman_shutdown(int sig) g_tcp_close(g_sck); + session_sigkill_all(); + g_file_delete(SESMAN_PID_FILE); } @@ -65,14 +67,14 @@ sig_sesman_reload_cfg(int sig) LOG_DBG("g_getpid() [%d] differs from g_pid [%d]", g_getpid(), g_pid); return; } - + if (config_read(&cfg) != 0) { log_message(LOG_LEVEL_ERROR, "error reading config - keeping old cfg"); return; } g_cfg = cfg; - + log_message(LOG_LEVEL_INFO, "configuration reloaded"); } @@ -103,7 +105,7 @@ sig_handler_thread(void* arg) sigset_t waitmask; /* mask signals to be able to wait for them... */ - sigfillset(&sigmask); + sigfillset(&sigmask); /* it is a good idea not to block SIGILL SIGSEGV */ /* SIGFPE -- see sigaction(2) NOTES */ pthread_sigmask(SIG_BLOCK, &sigmask, &oldmask); |