Got rid of a cumbersome open-close cycle with burn_read_data() on stdio:

This commit is contained in:
2008-03-03 20:30:10 +00:00
parent c1298d82a6
commit 86d5bdfef8
4 changed files with 11 additions and 3 deletions

View File

@ -439,6 +439,9 @@ int burn_drive_mark_unready(struct burn_drive *d)
burn_disc_free(d->disc);
d->disc = NULL;
}
if (d->stdio_fd >= 0)
close (d->stdio_fd);
d->stdio_fd = -1;
return 1;
}