diff options
author | jsorg71 <jsorg71> | 2009-07-23 19:46:44 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2009-07-23 19:46:44 +0000 |
commit | 2750bd3c9277d9c04f849aa1afbf8b6d369cf0ff (patch) | |
tree | 560fa828dcda5e0dd3e686b7d3115d872cbd0299 /sesman | |
parent | 553036d4e90f89eb0cc74bbaa537b60b552cde1d (diff) | |
download | xrdp-proprietary-2750bd3c9277d9c04f849aa1afbf8b6d369cf0ff.tar.gz xrdp-proprietary-2750bd3c9277d9c04f849aa1afbf8b6d369cf0ff.zip |
delete the pid file on exit
Diffstat (limited to 'sesman')
-rw-r--r-- | sesman/sesman.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sesman/sesman.c b/sesman/sesman.c index 4fc038de..186ad4e5 100644 --- a/sesman/sesman.c +++ b/sesman/sesman.c @@ -331,6 +331,12 @@ main(int argc, char** argv) sesman_main_loop(); + /* clean up PID file on exit */ + if (daemon) + { + g_file_delete(pid_file); + } + g_delete_wait_obj(g_term_event); g_delete_wait_obj(g_sync_event); |