diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2012-02-05 23:26:15 -0800 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2012-02-05 23:26:15 -0800 |
commit | f10e5bbfd57d491bf3a5f6521cb8c1c55b713772 (patch) | |
tree | b84455037ac3ae608e1ee65df4963d26241e1a59 /sesman | |
parent | b36f7d346ccb504547e675b6a0bf31bce75cc175 (diff) | |
download | xrdp-proprietary-f10e5bbfd57d491bf3a5f6521cb8c1c55b713772.tar.gz xrdp-proprietary-f10e5bbfd57d491bf3a5f6521cb8c1c55b713772.zip |
fix for https://bugzilla.redhat.com/show_bug.cgi?id=782619
Diffstat (limited to 'sesman')
-rw-r--r-- | sesman/chansrv/chansrv.c | 3 | ||||
-rw-r--r-- | sesman/sesman.c | 2 | ||||
-rw-r--r-- | sesman/sessvc/sessvc.c | 2 |
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; } |