diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-07-17 17:17:55 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-07-17 17:17:55 +0200 |
commit | 4ca5a5bc2991438602d3b1fdb56b91d2b425c52d (patch) | |
tree | b9a2f6f801031af9299bfc45095eac1eb3ceb495 /libbuild2/rule.cxx | |
parent | ab4a9ef42e8f1070dcb5d783a5afccd2f685e86d (diff) |
Fix race in path/mtime assignment and file_rule::match()
Diffstat (limited to 'libbuild2/rule.cxx')
-rw-r--r-- | libbuild2/rule.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libbuild2/rule.cxx b/libbuild2/rule.cxx index 4b2d69d..ac5b310 100644 --- a/libbuild2/rule.cxx +++ b/libbuild2/rule.cxx @@ -71,6 +71,9 @@ namespace build2 // me, this file exists" situations (used, for example, for installed // stuff where we know it's there, just not exactly where). // + // See also path_target::path_mtime() for a potential race in this + // logic. + // mtime_target& mt (t.as<mtime_target> ()); timestamp ts (mt.mtime ()); |