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>
This commit is contained in:
Ryan Pavlik 2011-11-03 19:25:57 -05:00 committed by Jon TURNEY
parent 2c712d094a
commit b20d2998cd

View File

@ -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) {