chansrv: init xcommon

This commit is contained in:
Jay Sorg 2012-07-28 19:50:58 -07:00
parent 690e6a598f
commit cc882a0eff

View File

@ -704,6 +704,11 @@ main(int argc, char** argv)
LOGM((LOG_LEVEL_ERROR, "main: error, display is zero")); LOGM((LOG_LEVEL_ERROR, "main: error, display is zero"));
return 1; 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)); LOGM((LOG_LEVEL_INFO, "main: using DISPLAY %d", g_display_num));
g_snprintf(text, 255, "xrdp_chansrv_%8.8x_main_term", pid); g_snprintf(text, 255, "xrdp_chansrv_%8.8x_main_term", pid);
g_term_event = g_create_wait_obj(text); g_term_event = g_create_wait_obj(text);