summaryrefslogtreecommitdiffstats
path: root/sesman
diff options
context:
space:
mode:
Diffstat (limited to 'sesman')
-rw-r--r--sesman/chansrv/chansrv.c3
-rw-r--r--sesman/sesman.c2
-rw-r--r--sesman/sessvc/sessvc.c2
3 files changed, 6 insertions, 1 deletions
diff --git a/sesman/chansrv/chansrv.c b/sesman/chansrv/chansrv.c
index 6e80f383..77fbcd50 100644
--- a/sesman/chansrv/chansrv.c
+++ b/sesman/chansrv/chansrv.c
@@ -637,7 +637,7 @@ main(int argc, char** argv)
char text[256] = "";
char* display_text = (char *)NULL;
- g_init(); /* os_calls */
+ g_init("xrdp-chansrv"); /* os_calls */
read_ini();
pid = g_getpid();
LOG(1, ("main: app started pid %d(0x%8.8x)", pid, pid));
@@ -681,5 +681,6 @@ main(int argc, char** argv)
/* cleanup */
main_cleanup();
LOG(1, ("main: app exiting pid %d(0x%8.8x)", pid, pid));
+ g_deinit();
return 0;
}
diff --git a/sesman/sesman.c b/sesman/sesman.c
index c97784a8..7bf794e1 100644
--- a/sesman/sesman.c
+++ b/sesman/sesman.c
@@ -138,6 +138,7 @@ main(int argc, char** argv)
char text[256];
char pid_file[256];
+ g_init("xrdp-sesman");
g_snprintf(pid_file, 255, "%s/xrdp-sesman.pid", XRDP_PID_PATH);
if (1 == argc)
{
@@ -350,6 +351,7 @@ main(int argc, char** argv)
log_end(&(g_cfg->log));
}
+ g_deinit();
return 0;
}
diff --git a/sesman/sessvc/sessvc.c b/sesman/sessvc/sessvc.c
index e814042a..fe268abc 100644
--- a/sesman/sessvc/sessvc.c
+++ b/sesman/sessvc/sessvc.c
@@ -80,6 +80,7 @@ main(int argc, char** argv)
int lerror = 0;
char exe_path[262];
+ g_init("xrdp-sessvc");
g_memset(exe_path,0,sizeof(exe_path));
if (argc < 3)
@@ -145,5 +146,6 @@ main(int argc, char** argv)
g_sleep(1);
}
g_writeln("xrdp-sessvc: clean exit");
+ g_deinit();
return 0;
}