summaryrefslogtreecommitdiff
path: root/os/osinit.c
diff options
context:
space:
mode:
authorRyan Pavlik <rpavlik@iastate.edu>2011-11-03 19:25:57 -0500
committerJon TURNEY <jon.turney@dronecode.org.uk>2012-11-28 14:44:11 +0000
commitb20d2998cd9a1320ef0e45ab6b741c7e25f646e0 (patch)
tree47d8363416ddf1de8aff30457a84a8b0510fd18c /os/osinit.c
parent2c712d094a49de0b96e2e9f5bcc1043b54ad0f61 (diff)
os/osinit.c: no getpgrp() and setpgrp() on WIN32
Signed-off-by: Ryan Pavlik <rpavlik@iastate.edu> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk> Tested-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'os/osinit.c')
-rw-r--r--os/osinit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/os/osinit.c b/os/osinit.c
index 2a946a456..6c66f9c12 100644
--- a/os/osinit.c
+++ b/os/osinit.c
@@ -246,8 +246,10 @@ OsInit(void)
#endif
}
+#if !defined(WIN32) || defined(__CYGWIN__)
if (getpgrp() == 0)
setpgid(0, 0);
+#endif
#ifdef RLIMIT_DATA
if (limitDataSpace >= 0) {