mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-26 18:10:06 +01:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue