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:
parent
2c712d094a
commit
b20d2998cd
|
@ -246,8 +246,10 @@ OsInit(void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(WIN32) || defined(__CYGWIN__)
|
||||||
if (getpgrp() == 0)
|
if (getpgrp() == 0)
|
||||||
setpgid(0, 0);
|
setpgid(0, 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef RLIMIT_DATA
|
#ifdef RLIMIT_DATA
|
||||||
if (limitDataSpace >= 0) {
|
if (limitDataSpace >= 0) {
|
||||||
|
|
Loading…
Reference in New Issue