ansible/utilities
David Shrewsbury 4e239f6ce0 Use os.rename() in async_wrapper
Because the async_status module will read from the same file that
the async_wrapper module is writing, it's possible that the file
may not be fully synced during a read, causing spurious failures.
Use a temp file to do an atomic operation on the file. We can't
use atomic_move() here as that doesn't work properly under async.

Also, let's not read concurrently from the same file the subprocess
is writing to. Instead, capture stdout/stderr via PIPE and write to
the file to avoid nasty races.
2016-06-29 09:53:47 -04:00
..
helper Adapt module to use new module._name property (#3918) 2016-06-10 11:45:49 -04:00
logic Use os.rename() in async_wrapper 2016-06-29 09:53:47 -04:00
__init__.py package files 2014-09-26 11:05:47 -04:00