summaryrefslogtreecommitdiffstats
path: root/xup
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2013-10-02 11:56:09 -0700
committerJay Sorg <jay.sorg@gmail.com>2013-10-02 11:56:09 -0700
commit97473e4f66e30ba75f0069a01f392760b6a17075 (patch)
treebf46bc734e34659ed3a523534052f9387f70fe7b /xup
parentb598e258a43dc3ca6f3dcc37ceb6a2a6c18227d1 (diff)
downloadxrdp-proprietary-97473e4f66e30ba75f0069a01f392760b6a17075.tar.gz
xrdp-proprietary-97473e4f66e30ba75f0069a01f392760b6a17075.zip
xup: pid logging, use log_message
Diffstat (limited to 'xup')
-rw-r--r--xup/xup.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/xup/xup.c b/xup/xup.c
index e2e32de7..12cfa4f1 100644
--- a/xup/xup.c
+++ b/xup/xup.c
@@ -19,6 +19,7 @@
*/
#include "xup.h"
+#include "log.h"
#include <sys/ipc.h>
#include <sys/shm.h>
@@ -145,15 +146,16 @@ lib_mod_log_peer(struct mod *mod)
int uid;
int gid;
- my_pid = g_get_pid();
+ my_pid = g_getpid();
if (g_sck_get_peer_cred(mod->sck, &pid, &uid, &gid) == 0)
{
- g_writeln("lib_mod_connect: xrdp pid %d", my_pid);
- g_writeln(" X11rdp pid %d, uid %d gid %d", pid, uid, gid);
+ log_message(LOG_LEVEL_INFO, "lib_mod_log_peer: xrdp pid %d connected "
+ "to X11rdp pid %d", my_pid, pid);
}
else
{
- g_writeln("lib_mod_connect: g_sck_get_peer_cred failed");
+ log_message(LOG_LEVEL_ERROR, "lib_mod_log_peer: g_sck_get_peer_cred "
+ "failed");
}
return 0;
}