summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2017-10-06 03:34:40 +0200
committerJes Sorensen <jsorensen@fb.com>2017-10-10 22:42:39 +0200
commitf258a5e3911c4d8074c4f9578cccebf2a638a6e4 (patch)
tree09b53b1147bff860db9d577541ab677fdd38d7d8
parentmdcheck: add some logging. (diff)
downloadmdadm-f258a5e3911c4d8074c4f9578cccebf2a638a6e4.tar.xz
mdadm-f258a5e3911c4d8074c4f9578cccebf2a638a6e4.zip
mdcheck: improve cleanup
We should remove the tmp file on signals as well as on exit. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
-rw-r--r--misc/mdcheck2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/mdcheck b/misc/mdcheck
index 589d038e..42d4094a 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