From 689ffe79d9c79edfce9e5da94d0c4723937df4e9 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Wed, 16 Mar 2016 14:32:14 -0700 Subject: fix warnings, move some calls to os_calls --- common/os_calls.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'common/os_calls.c') 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 @@ -2832,6 +2832,28 @@ g_setuid(int pid) #endif } +/*****************************************************************************/ +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 */ -- cgit v1.2.3