From 23ffdb0c5fe0315d9d237f168e7d72abe0ba422c Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Tue, 19 May 2009 04:23:49 +0000 Subject: autotools fix and file_loc.h simplified --- sesman/sig.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sesman/sig.c') 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); } /******************************************************************************/ -- cgit v1.2.1