summaryrefslogtreecommitdiffstats
path: root/sesman/sesman.c
diff options
context:
space:
mode:
authorjsorg71 <jay.sorg@gmail.com>2016-08-05 14:38:41 -0700
committerGitHub <noreply@github.com>2016-08-05 14:38:41 -0700
commit8353baab3d361bcdebb32f1677dd066e0b255dc9 (patch)
tree38bd74dc119bdc115d5876383d7a65ff3e19debd /sesman/sesman.c
parent81fe939dd346420d41eb2afcd6c8c05a422a9e7b (diff)
parentace7d2c822937a9cb0637946f85d1fbd63562c44 (diff)
downloadxrdp-proprietary-8353baab3d361bcdebb32f1677dd066e0b255dc9.tar.gz
xrdp-proprietary-8353baab3d361bcdebb32f1677dd066e0b255dc9.zip
Merge pull request #390 from proski/june21
Cleanups and C++ compatibility
Diffstat (limited to 'sesman/sesman.c')
-rw-r--r--sesman/sesman.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sesman/sesman.c b/sesman/sesman.c
index 64728376..c9666943 100644
--- a/sesman/sesman.c
+++ b/sesman/sesman.c
@@ -49,9 +49,6 @@ sesman_main_loop(void)
tbus sck_obj;
tbus robjs[8];
- /*main program loop*/
- log_message(LOG_LEVEL_INFO, "listening...");
-
g_sck = g_tcp_socket();
if (g_sck < 0)
{
@@ -68,6 +65,8 @@ sesman_main_loop(void)
if (error == 0)
{
+ log_message(LOG_LEVEL_INFO, "listening to port %s on %s",
+ g_cfg->listen_port, g_cfg->listen_address);
sck_obj = g_create_wait_obj_from_socket(g_sck, 0);
cont = 1;
@@ -248,7 +247,7 @@ main(int argc, char **argv)
}
/* reading config */
- g_cfg = g_malloc(sizeof(struct config_sesman), 1);
+ g_cfg = g_new0(struct config_sesman, 1);
if (0 == g_cfg)
{
@@ -359,8 +358,8 @@ main(int argc, char **argv)
}
/* start program main loop */
- log_message(LOG_LEVEL_ALWAYS,
- "starting sesman with pid %d", g_pid);
+ log_message(LOG_LEVEL_INFO,
+ "starting xrdp-sesman with pid %d", g_pid);
/* make sure the /tmp/.X11-unix directory exist */
if (!g_directory_exist("/tmp/.X11-unix"))