diff options
author | jsorg71 <jsorg71> | 2009-05-19 04:23:49 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2009-05-19 04:23:49 +0000 |
commit | 23ffdb0c5fe0315d9d237f168e7d72abe0ba422c (patch) | |
tree | 9c565ce9f75c1aab5329837d209af63a9dd74a54 /sesman/sig.c | |
parent | a386eac0f931716e421e20a7cc07c2f0b4e70a2f (diff) | |
download | xrdp-proprietary-23ffdb0c5fe0315d9d237f168e7d72abe0ba422c.tar.gz xrdp-proprietary-23ffdb0c5fe0315d9d237f168e7d72abe0ba422c.zip |
autotools fix and file_loc.h simplified
Diffstat (limited to 'sesman/sig.c')
-rw-r--r-- | sesman/sig.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sesman/sig.c b/sesman/sig.c index 7405b024..6df57cc1 100644 --- a/sesman/sig.c +++ b/sesman/sig.c @@ -38,6 +38,8 @@ extern tbus g_term_event; void DEFAULT_CC sig_sesman_shutdown(int sig) { + char pid_file[256]; + log_message(&(g_cfg->log), LOG_LEVEL_INFO, "shutting down sesman %d", 1); if (g_getpid() != g_pid) @@ -54,7 +56,8 @@ sig_sesman_shutdown(int sig) session_sigkill_all(); - g_file_delete(SESMAN_PID_FILE); + g_snprintf(pid_file, 255, "%s/xrdp-sesman.pid", XRDP_PID_PATH); + g_file_delete(pid_file); } /******************************************************************************/ |