summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2012-07-28 19:50:58 -0700
committerJay Sorg <jay.sorg@gmail.com>2012-07-28 19:50:58 -0700
commitcc882a0eff61865a0d4ae2214ecc3c2cfabbe0e0 (patch)
treeb8cf0342521c0c24eb3bb1ae3b4580f6eea050b9
parent690e6a598fd28b50ab814f326ce560e1ef40a4db (diff)
downloadxrdp-proprietary-cc882a0eff61865a0d4ae2214ecc3c2cfabbe0e0.tar.gz
xrdp-proprietary-cc882a0eff61865a0d4ae2214ecc3c2cfabbe0e0.zip
chansrv: init xcommon
-rw-r--r--sesman/chansrv/chansrv.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sesman/chansrv/chansrv.c b/sesman/chansrv/chansrv.c
index 2877a376..32316dc3 100644
--- a/sesman/chansrv/chansrv.c
+++ b/sesman/chansrv/chansrv.c
@@ -704,6 +704,11 @@ main(int argc, char** argv)
LOGM((LOG_LEVEL_ERROR, "main: error, display is zero"));
return 1;
}
+ if (xcommon_init() != 0)
+ {
+ LOGM((LOG_LEVEL_ERROR, "main: error, xcommon_init failed"));
+ return 1;
+ }
LOGM((LOG_LEVEL_INFO, "main: using DISPLAY %d", g_display_num));
g_snprintf(text, 255, "xrdp_chansrv_%8.8x_main_term", pid);
g_term_event = g_create_wait_obj(text);