aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_linux.h
diff options
context:
space:
mode:
authorMark Johnston <markjdb@gmail.com>2022-06-13 13:55:38 -0400
committerDmitry Vyukov <dvyukov@google.com>2022-06-17 07:59:41 +0200
commitcb58b3b231a677b1a6c89cd2af59e4fab10f9144 (patch)
tree6c46ec03c5c6f148b569e9083e8c704796c8be6b /executor/common_linux.h
parent1719ee24e741afb177677e9644f1c74aef1060fb (diff)
executor: try harder to unlink files on FreeBSD
There is a BSD syscall, chflags(2), which lets one set various flags on a file, including several that prevent unlinking. The use of this flag can cause the executor to fail to clean up tmpdirs, which can lead to spurious reports. Thus, when unlinking fails, try again after clearing relevant flags. I suspect this would be useful on other BSDs but I can't easily verify that this change works there. It may eventually be worth having a BSD-specific remove_dir() implementation.
Diffstat (limited to 'executor/common_linux.h')
0 files changed, 0 insertions, 0 deletions