summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2005-12-02 04:57:51 +0000
committerjsorg71 <jsorg71>2005-12-02 04:57:51 +0000
commit19314ec0551996d863743a911dfcaa0be7532d8b (patch)
treed9604861b79f6025fef7cb8224d03c65e6688a33 /xrdp/xrdp.c
parent58976ccc9747a9cea00fe3b2b8f8a71a2e292117 (diff)
downloadxrdp-proprietary-19314ec0551996d863743a911dfcaa0be7532d8b.tar.gz
xrdp-proprietary-19314ec0551996d863743a911dfcaa0be7532d8b.zip
Makefile and file location changes
Diffstat (limited to 'xrdp/xrdp.c')
-rw-r--r--xrdp/xrdp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/xrdp/xrdp.c b/xrdp/xrdp.c
index 2a9ccdc7..4577f2d2 100644
--- a/xrdp/xrdp.c
+++ b/xrdp/xrdp.c
@@ -102,7 +102,7 @@ xrdp_shutdown(int sig)
xrdp_listen_delete(listen);
}
/* delete the xrdp.pid file */
- g_file_delete("./xrdp.pid");
+ g_file_delete(XRDP_PID_FILE);
}
/*****************************************************************************/
@@ -432,9 +432,9 @@ main(int argc, char** argv)
g_printf("stopping xrdp\r\n");
/* read the xrdp.pid file */
fd = -1;
- if (g_file_exist("./xrdp.pid"))
+ if (g_file_exist(XRDP_PID_FILE)) /* xrdp.pid */
{
- fd = g_file_open("./xrdp.pid");
+ fd = g_file_open(XRDP_PID_FILE); /* xrdp.pid */
}
if (fd == -1)
{
@@ -491,7 +491,7 @@ main(int argc, char** argv)
g_printf("\r\n");
g_exit(0);
}
- if (g_file_exist("./xrdp.pid"))
+ if (g_file_exist(XRDP_PID_FILE)) /* xrdp.pid */
{
g_printf("It looks like xrdp is allready running,\r\n");
g_printf("if not delete the xrdp.pid file and try again\r\n");
@@ -523,7 +523,7 @@ main(int argc, char** argv)
}
/* write the pid to file */
pid = g_getpid();
- fd = g_file_open("./xrdp.pid");
+ fd = g_file_open(XRDP_PID_FILE); /* xrdp.pid */
if (fd == -1)
{
g_printf("trying to write process id to xrdp.pid\r\n");
@@ -532,7 +532,7 @@ main(int argc, char** argv)
}
else
{
- g_set_file_rights("./xrdp.pid", 1, 1);
+ g_set_file_rights(XRDP_PID_FILE, 1, 1); /* xrdp.pid */
g_sprintf(text, "%d", pid);
g_file_write(fd, text, g_strlen(text));
g_file_close(fd);