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

Jon TURNEY jon.turney at dronecode.org.uk
Wed Jan 11 12:13:29 PST 2012


From: Ryan Pavlik <rpavlik at iastate.edu>

Reviewed-by: Jon TURNEY <jon.turney at dronecode.org.uk>
---
 os/osinit.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/os/osinit.c b/os/osinit.c
index 18d099d..1f00034 100644
--- a/os/osinit.c
+++ b/os/osinit.c
@@ -242,8 +242,10 @@ OsInit(void)
 #endif
 	}
 
+#if !defined(WIN32) || defined(__CYGWIN__)
 	if (getpgrp () == 0)
 	    setpgid (0, 0);
+#endif
 
 #ifdef RLIMIT_DATA
 	if (limitDataSpace >= 0)
-- 
1.7.5.1



More information about the xorg-devel mailing list