diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-09-27 13:25:45 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-11-02 18:35:07 +0100 |
commit | 8dc592e620b45c4745380b0694ec1aedc073bda2 (patch) | |
tree | a4f829865d6be392413cfc52792abca32014b113 /json-streamer.h | |
parent | a6ef29096b89640acaa5edc3a74c2e3efbfa306f (diff) |
migration: use migrate_fd_close in migrate_fd_cleanup
migrate_fd_cleanup will usually close the file descriptor via
buffered_file_close's call to migrate_fd_close. However, in the case
of s->file == NULL it is "inlining" migrate_fd_close (almost: there is a
direct close() instead of using s->close(s)). To fix the inconsistency
and clean up the code, allow multiple calls to migrate_fd_close and use
the function in migrate_fd_cleanup.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'json-streamer.h')
0 files changed, 0 insertions, 0 deletions