Statistics
| Branch: | Tag: | Revision:

root / test / tempfile_fork_unittest.py @ 7578ab0a

History | View | Annotate | Download (3.1 kB)

# Date Author Comment
055f822b 02/18/2010 02:21 pm Michael Hanselmann

Add function to reset tempfile module after fork

On fork, the tempfile module's pseudo random generator is
not reset. If several processes (e.g. two children or parent
and child) try to create a temporary file, they'll conflict.
This function can be used to reset the name generator which...