diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2012-02-13 23:31:11 -0800 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2012-02-13 23:31:11 -0800 |
commit | 93939893de95a8419ba067b358c951b036d78cc7 (patch) | |
tree | a8746046e96b7ce1d1b3d2b0753c7a98d4fc0833 /xrdp/xrdp.c | |
parent | 968a293e193a41a3230a99c09008273e3d9fcc56 (diff) | |
download | xrdp-proprietary-93939893de95a8419ba067b358c951b036d78cc7.tar.gz xrdp-proprietary-93939893de95a8419ba067b358c951b036d78cc7.zip |
remove old freerdp dir
Diffstat (limited to 'xrdp/xrdp.c')
-rw-r--r-- | xrdp/xrdp.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xrdp/xrdp.c b/xrdp/xrdp.c index bbe6c6a8..fb8dfbc0 100644 --- a/xrdp/xrdp.c +++ b/xrdp/xrdp.c @@ -279,6 +279,7 @@ main(int argc, char** argv) g_writeln("Unknown Parameter"); g_writeln("xrdp -h for help"); g_writeln(""); + g_deinit(); g_exit(0); } @@ -311,6 +312,7 @@ main(int argc, char** argv) } g_file_close(fd); } + g_deinit(); g_exit(0); } if (startup_params->no_daemon) @@ -329,6 +331,7 @@ main(int argc, char** argv) g_writeln(" -nodaemon: don't fork into background"); g_writeln(" -kill: shut down xrdp"); g_writeln(""); + g_deinit(); g_exit(0); } if (startup_params->version) @@ -339,12 +342,14 @@ main(int argc, char** argv) g_writeln("See http://xrdp.sourceforge.net for more information."); g_writeln("Version %s",PACKAGE_VERSION); g_writeln(""); + g_deinit(); g_exit(0); } if (g_file_exist(pid_file)) /* xrdp.pid */ { g_writeln("It looks like xrdp is allready running,"); g_writeln("if not delete the xrdp.pid file and try again"); + g_deinit(); g_exit(0); } if (!no_daemon) @@ -354,11 +359,13 @@ main(int argc, char** argv) if (fd == -1) { g_writeln("running in daemon mode with no access to pid files, quitting"); + g_deinit(); g_exit(0); } if (g_file_write(fd, "0", 1) == -1) { g_writeln("running in daemon mode with no access to pid files, quitting"); + g_deinit(); g_exit(0); } g_file_close(fd); @@ -371,12 +378,14 @@ main(int argc, char** argv) if (pid == -1) { g_writeln("problem forking"); + g_deinit(); g_exit(1); } if (0 != pid) { g_writeln("process %d started ok", pid); /* exit, this is the main process */ + g_deinit(); g_exit(0); } g_sleep(1000); |