summaryrefslogtreecommitdiffstats
path: root/sesman/session.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2016-03-16 14:32:14 -0700
committerJay Sorg <jay.sorg@gmail.com>2016-03-16 14:32:14 -0700
commit689ffe79d9c79edfce9e5da94d0c4723937df4e9 (patch)
tree3219eff84dd1df33822ed25c3cc22ee43e77751d /sesman/session.c
parent38241f2a0bd8909815cce67adb56d29619b19ad1 (diff)
downloadxrdp-proprietary-689ffe79d9c79edfce9e5da94d0c4723937df4e9.tar.gz
xrdp-proprietary-689ffe79d9c79edfce9e5da94d0c4723937df4e9.zip
fix warnings, move some calls to os_calls
Diffstat (limited to 'sesman/session.c')
-rw-r--r--sesman/session.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sesman/session.c b/sesman/session.c
index 3860c199..9e29b199 100644
--- a/sesman/session.c
+++ b/sesman/session.c
@@ -504,16 +504,17 @@ session_start_fork(int width, int height, int bpp, char *username,
* Create a new session and process group since the 4.4BSD
* setlogin() affects the entire process group
*/
- if (setsid() < 0)
+ if (g_setsid() < 0)
{
- log_message(LOG_LEVEL_ERROR,
- "setsid failed - pid %d", g_getpid());
+ log_message(LOG_LEVEL_ERROR,
+ "setsid failed - pid %d", g_getpid());
}
- if (setlogin(username) < 0)
+ if (g_setlogin(username) < 0)
{
- log_message(LOG_LEVEL_ERROR,
- "setlogin failed for user %s - pid %d", username, g_getpid());
+ log_message(LOG_LEVEL_ERROR,
+ "setlogin failed for user %s - pid %d", username,
+ g_getpid());
}
}