[PATCH 4/6] os/osinit.c: no getpgrp() and setpgrp() on WIN32

Jon TURNEY jon.turney at dronecode.org.uk
Tue Nov 13 05:40:49 PST 2012


From: Ryan Pavlik <rpavlik at iastate.edu>

Signed-off-by: Ryan Pavlik <rpavlik at iastate.edu>
Reviewed-by: Jon TURNEY <jon.turney at dronecode.org.uk>
Tested-by: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
---
 os/osinit.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/os/osinit.c b/os/osinit.c
index 2a946a4..6c66f9c 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) {
-- 
1.7.9



More information about the xorg-devel mailing list