Menu

#2748 cmpi-base/OS_BaseOperatingSystem.c does not compile on Cygwin

Code_Cleanup
open
nobody
None
providers
5
2015-06-28
2015-06-28
No

cmpi-base does not compile on Cygwin

In OS_BaseOperatingSystem.c, line 357, is not defined. A simple hack fixing this for the short term is:

// This is not defined on Cygwin.
#ifdef RLIMIT_NPROC
rc = getrlimit(RLIMIT_NPROC, &rlim); / same as calling 'ulimit -u' /
if (rc == 0) { max = rlim.rlim_max; }
#else
// Realistic maximum number of processes.
max = 256;
#endif

Discussion


Log in to post a comment.

MongoDB Logo MongoDB