summaryrefslogtreecommitdiffstats
path: root/func
diff options
context:
space:
mode:
Diffstat (limited to 'func')
-rw-r--r--func/forkbomb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/func/forkbomb.py b/func/forkbomb.py
index 4448337..7cc9df3 100644
--- a/func/forkbomb.py
+++ b/func/forkbomb.py
@@ -130,9 +130,9 @@ def batch_run(pool,callback,nforks=DEFAULT_FORKS,cachedir=DEFAULT_CACHE_DIR):
the workload over nfork forks. Temporary files used during the
operation will be created in cachedir and subsequently deleted.
"""
- if nforks <= 1:
+ if nforks < 1:
# modulus voodoo gets crazy otherwise and bad things happen
- nforks = 2
+ nforks = 1
shelf_file = __get_storage(cachedir)
__access_buckets(shelf_file,True,None)
buckets = __bucketize(pool, nforks)