summaryrefslogtreecommitdiffstats
path: root/sesman/sesman.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2008-12-28 06:11:14 +0000
committerjsorg71 <jsorg71>2008-12-28 06:11:14 +0000
commit18600b093eea5375861ade7e12bbd9c541eff6ed (patch)
tree155ea7c70182caf537544c16782553944b894665 /sesman/sesman.c
parent23fe2e2259d1348110b0ba20af13ac523c3ab849 (diff)
downloadxrdp-proprietary-18600b093eea5375861ade7e12bbd9c541eff6ed.tar.gz
xrdp-proprietary-18600b093eea5375861ade7e12bbd9c541eff6ed.zip
move to using the signal functions instead of sigaddset since we removed unset signals
Diffstat (limited to 'sesman/sesman.c')
-rw-r--r--sesman/sesman.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/sesman/sesman.c b/sesman/sesman.c
index 3a9468c4..0b079406 100644
--- a/sesman/sesman.c
+++ b/sesman/sesman.c
@@ -248,16 +248,19 @@ main(int argc, char** argv)
g_pid = g_getpid();
/* old style signal handling is now managed synchronously by a
* separate thread. uncomment this block if you need old style
- * signal handling and comment out thread_sighandler_start() */
- /*
- g_signal(1, sig_sesman_reload_cfg); / * SIGHUP * /
- g_signal(2, sig_sesman_shutdown); / * SIGINT * /
- g_signal(9, sig_sesman_shutdown); / * SIGKILL * /
- g_signal(15, sig_sesman_shutdown); / * SIGTERM * /
- g_signal_child_stop(cterm); / * SIGCHLD * /
- */
+ * signal handling and comment out thread_sighandler_start()
+ * going back to old style for the time being
+ * problem with the sigaddset functions in sig.c - jts */
+#if 1
+ g_signal(1, sig_sesman_reload_cfg); /* SIGHUP */
+ g_signal(2, sig_sesman_shutdown); /* SIGINT */
+ g_signal(9, sig_sesman_shutdown); /* SIGKILL */
+ g_signal(15, sig_sesman_shutdown); /* SIGTERM */
+ g_signal_child_stop(sig_sesman_session_end); /* SIGCHLD */
+#endif
+#if 0
thread_sighandler_start();
-
+#endif
if (daemon)
{
/* writing pid file */