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>
This commit is contained in:
parent
ea835492b6
commit
f258a5e391
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue