We should remove the tmp file on signals as well as on exit. Signed-off-by: NeilBrown <neilb@xxxxxxxx> --- misc/mdcheck | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/mdcheck b/misc/mdcheck index 589d038eed9b..42d4094a2754 100644 --- a/misc/mdcheck +++ b/misc/mdcheck @@ -66,7 +66,7 @@ shift # We need a temp file occasionally... tmp=/var/lib/mdcheck/.md-check-$$ -trap 'rm -f "$tmp"' 0 +trap 'rm -f "$tmp"' 0 2 3 15 # firstly, clean out really old state files -- 2.14.0.rc0.dirty
Attachment:
signature.asc
Description: PGP signature