diff options
author | Krzysztof A. Adamski <krzysztofa@gmail.com> | 2008-06-04 09:44:32 -0400 |
---|---|---|
committer | Krzysztof A. Adamski <krzysztofa@gmail.com> | 2008-06-04 09:44:32 -0400 |
commit | a78191743f6ac9a558673106d500ae41dd936094 (patch) | |
tree | 46149f64bcc63694716cb81cc6edde46854e5393 /func | |
parent | c700b80b34f86f3bc84506ee02fbfa0d30c0e5e9 (diff) | |
download | third_party-func-a78191743f6ac9a558673106d500ae41dd936094.tar.gz third_party-func-a78191743f6ac9a558673106d500ae41dd936094.tar.xz third_party-func-a78191743f6ac9a558673106d500ae41dd936094.zip |
"modulus voodoo" is fixed now and it is possible to run with nforks=1.
Diffstat (limited to 'func')
-rw-r--r-- | func/forkbomb.py | 4 |
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) |