From 9288b16cd2c926d00f91785e00ef6a5d5f3671b2 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Fri, 9 Aug 2013 12:21:24 +0200 Subject: [PATCH] Fix 918b8a3c01 on Windows. --- src/commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands.py b/src/commands.py index 9803b01de..5bff7cf43 100644 --- a/src/commands.py +++ b/src/commands.py @@ -89,7 +89,9 @@ def process(f, *args, **kwargs): , if supplied, limits the length of execution of target function to seconds.""" timeout = kwargs.pop('timeout', None) - heap_size = kwargs.pop('heap_size', resource.RLIM_INFINITY) + heap_size = kwargs.pop('heap_size', None) + if resource and heap_size is None: + heap_size = resource.RLIM_INFINITY if conf.disableMultiprocessing: pn = kwargs.pop('pn', 'Unknown')