summaryrefslogtreecommitdiffstats
path: root/common/os_calls.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 /common/os_calls.c
parent38241f2a0bd8909815cce67adb56d29619b19ad1 (diff)
downloadxrdp-proprietary-689ffe79d9c79edfce9e5da94d0c4723937df4e9.tar.gz
xrdp-proprietary-689ffe79d9c79edfce9e5da94d0c4723937df4e9.zip
fix warnings, move some calls to os_calls
Diffstat (limited to 'common/os_calls.c')
-rw-r--r--common/os_calls.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/common/os_calls.c b/common/os_calls.c
index 57bb6a2f..21577a71 100644
--- a/common/os_calls.c
+++ b/common/os_calls.c
@@ -2833,6 +2833,28 @@ g_setuid(int pid)
}
/*****************************************************************************/
+int APP_CC
+g_setsid(void)
+{
+#if defined(_WIN32)
+ return -1;
+#else
+ return setsid();
+#endif
+}
+
+/*****************************************************************************/
+int APP_CC
+g_setlogin(const char *name)
+{
+#ifdef BSD
+ return setlogin(name);
+#else
+ return -1;
+#endif
+}
+
+/*****************************************************************************/
/* does not work in win32
returns pid of process that exits or zero if signal occurred */
int APP_CC