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:
NeilBrown 2017-10-06 12:34:40 +11:00 committed by Jes Sorensen
parent ea835492b6
commit f258a5e391
1 changed files with 1 additions and 1 deletions

View File

@ -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