diff options
Diffstat (limited to 'common/os_calls.c')
| -rw-r--r-- | common/os_calls.c | 22 |
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 |
