From a78191743f6ac9a558673106d500ae41dd936094 Mon Sep 17 00:00:00 2001 From: "Krzysztof A. Adamski" Date: Wed, 4 Jun 2008 09:44:32 -0400 Subject: "modulus voodoo" is fixed now and it is possible to run with nforks=1. --- func/forkbomb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'func/forkbomb.py') 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) -- cgit