monitor: close recovery_fd when closing state_Fd

These should be open or closed together.

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown 2011-03-14 18:24:01 +11:00
parent 18cb44962d
commit e40512fddb
1 changed files with 1 additions and 0 deletions

View File

@ -374,6 +374,7 @@ static int read_and_act(struct active_array *a)
if (remove_result > 0) {
dprintf(" %d:removed", mdi->disk.raid_disk);
close(mdi->state_fd);
close(mdi->recovery_fd);
mdi->state_fd = -1;
}
}