diff options
author | alanminko <37236958+alanminko@users.noreply.github.com> | 2020-04-30 14:03:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-30 14:03:26 -0700 |
commit | 8de27b691b86556e5fa5167f87b00399ff9e028e (patch) | |
tree | 5cfbf62760733e9d28b00f515cd88e3b29125809 /src/base | |
parent | fb8d13a1c50f3ff7f6975551bc55104600b7980f (diff) | |
parent | 8afd927d609faf44fcf70e7870bbc201cffde0fd (diff) | |
download | abc-8de27b691b86556e5fa5167f87b00399ff9e028e.tar.gz abc-8de27b691b86556e5fa5167f87b00399ff9e028e.tar.bz2 abc-8de27b691b86556e5fa5167f87b00399ff9e028e.zip |
Merge pull request #57 from whitequark/patch-1
Make use of setrlimit conditional on ABC_NO_RLIMIT
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/main/mainReal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/main/mainReal.c b/src/base/main/mainReal.c index be099be4..922e0521 100644 --- a/src/base/main/mainReal.c +++ b/src/base/main/mainReal.c @@ -132,7 +132,7 @@ int Abc_RealMain( int argc, char * argv[] ) break; case 'm': { -#ifndef WIN32 +#if !defined(WIN32) && !defined(ABC_NO_RLIMIT) int maxMb = atoi(globalUtilOptarg); printf("Limiting memory use to %d MB\n", maxMb); struct rlimit limit = { @@ -144,7 +144,7 @@ int Abc_RealMain( int argc, char * argv[] ) break; } case 'l': { -#ifndef WIN32 +#if !defined(WIN32) && !defined(ABC_NO_RLIMIT) rlim_t maxTime = atoi(globalUtilOptarg); printf("Limiting time to %d seconds\n", (int)maxTime); struct rlimit limit = { |