summaryrefslogtreecommitdiffstats
path: root/sesman/sessvc/sessvc.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2012-02-14 13:45:24 -0800
committerJay Sorg <jay.sorg@gmail.com>2012-02-14 13:45:24 -0800
commitcadad6e181d2a67698e5eb7cacd6b233ae29eb97 (patch)
treee83143e3a2d07493ccfee7c63a43f5f8b1eb4df8 /sesman/sessvc/sessvc.c
parent2225aa80ad36e88d5a55b743115fd33994703c6f (diff)
downloadxrdp-proprietary-cadad6e181d2a67698e5eb7cacd6b233ae29eb97.tar.gz
xrdp-proprietary-cadad6e181d2a67698e5eb7cacd6b233ae29eb97.zip
/tmp cleanup
Diffstat (limited to 'sesman/sessvc/sessvc.c')
-rw-r--r--sesman/sessvc/sessvc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sesman/sessvc/sessvc.c b/sesman/sessvc/sessvc.c
index 088f4f51..1ca32b00 100644
--- a/sesman/sessvc/sessvc.c
+++ b/sesman/sessvc/sessvc.c
@@ -86,6 +86,7 @@ main(int argc, char** argv)
if (argc < 3)
{
g_writeln("xrdp-sessvc: exiting, not enough parameters");
+ g_deinit();
return 1;
}
g_signal_kill(term_signal_handler); /* SIGKILL */
@@ -101,6 +102,7 @@ main(int argc, char** argv)
if (chansrv_pid == -1)
{
g_writeln("xrdp-sessvc: fork error");
+ g_deinit();
return 1;
}
else if (chansrv_pid == 0) /* child */
@@ -110,6 +112,7 @@ main(int argc, char** argv)
g_execlp3(exe_path, "xrdp-chansrv", 0);
/* should not get here */
g_writeln("xrdp-sessvc: g_execlp3() failed");
+ g_deinit();
return 1;
}
lerror = 0;