summaryrefslogtreecommitdiff
path: root/os/osinit.c
diff options
context:
space:
mode:
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) {