apenwarr-redo/redo
Avery Pennarun 1f79bf1174 Detect when a .do script deletes its stdout tmp file.
This can happen if we create the .tmp file in the same directory as the
target, and the .do file first does "rm -rf" on that directory, then
re-creates it.  The result is that the stdout file is lost.

We'll make this a warning if the .do script *didn't* write to stdout
(so the loss is harmless, just weird), and an error if they *did* write
to stdout, which we can detect because we still have an open fd on the
file, so we can fstat() it.
2018-12-12 03:45:33 +00:00
..
version Switch to module-relative import syntax. 2018-12-05 02:34:36 -05:00
.gitignore Rename redo/python -> redo/py. 2018-12-05 02:27:04 -05:00
__init__.py Directory reorg: move code into redo/, generate binaries in bin/. 2018-12-04 02:53:40 -05:00
atoi.py Directory reorg: move code into redo/, generate binaries in bin/. 2018-12-04 02:53:40 -05:00
builder.py Detect when a .do script deletes its stdout tmp file. 2018-12-12 03:45:33 +00:00
clean.do Rename redo/python -> redo/py. 2018-12-05 02:27:04 -05:00
cmd_always.py Make calls to logs.setup() explicit in each cmd. 2018-12-11 02:35:11 +00:00
cmd_ifchange.py Some renaming and comments to try to clarify builder and jobserver. 2018-12-11 04:17:27 +00:00
cmd_ifcreate.py Make calls to logs.setup() explicit in each cmd. 2018-12-11 02:35:11 +00:00
cmd_log.py Switch to module-relative import syntax. 2018-12-05 02:34:36 -05:00
cmd_ood.py Make calls to logs.setup() explicit in each cmd. 2018-12-11 02:35:11 +00:00
cmd_redo.py Some renaming and comments to try to clarify builder and jobserver. 2018-12-11 04:17:27 +00:00
cmd_sources.py Make calls to logs.setup() explicit in each cmd. 2018-12-11 02:35:11 +00:00
cmd_stamp.py Make calls to logs.setup() explicit in each cmd. 2018-12-11 02:35:11 +00:00
cmd_targets.py Make calls to logs.setup() explicit in each cmd. 2018-12-11 02:35:11 +00:00
cmd_unlocked.py Make calls to logs.setup() explicit in each cmd. 2018-12-11 02:35:11 +00:00
cmd_whichdo.py Make calls to logs.setup() explicit in each cmd. 2018-12-11 02:35:11 +00:00
cycles.py Move env.{add,get}_lock() into cycles.py, and rename. 2018-12-05 02:26:58 -05:00
deps.py Switch to module-relative import syntax. 2018-12-05 02:34:36 -05:00
env.py Switch to module-relative import syntax. 2018-12-05 02:34:36 -05:00
helpers.py Directory reorg: move code into redo/, generate binaries in bin/. 2018-12-04 02:53:40 -05:00
jobserver.py Some renaming and comments to try to clarify builder and jobserver. 2018-12-11 04:17:27 +00:00
logs.py Make calls to logs.setup() explicit in each cmd. 2018-12-11 02:35:11 +00:00
options.py Directory reorg: move code into redo/, generate binaries in bin/. 2018-12-04 02:53:40 -05:00
paths.py Switch to module-relative import syntax. 2018-12-05 02:34:36 -05:00
py.do Rename redo/python -> redo/py. 2018-12-05 02:27:04 -05:00
sh.do Fix minimal/do and tests when built in a path containing spaces. 2018-12-11 01:22:29 +00:00
state.py Switch to module-relative import syntax. 2018-12-05 02:34:36 -05:00
title.py Move setproctitle() stuff into title.py. 2018-12-05 02:28:34 -05:00
whichpython.do Directory reorg: move code into redo/, generate binaries in bin/. 2018-12-04 02:53:40 -05:00