Revision 13c7b2da migration-exec.c
b/migration-exec.c | ||
---|---|---|
50 | 50 |
ret = qemu_fclose(s->opaque); |
51 | 51 |
s->opaque = NULL; |
52 | 52 |
s->fd = -1; |
53 |
if (ret >= 0 && !(WIFEXITED(ret) && WEXITSTATUS(ret) == 0)) { |
|
54 |
/* close succeeded, but non-zero exit code: */ |
|
55 |
ret = -EIO; /* fake errno value */ |
|
56 |
} |
|
57 | 53 |
return ret; |
58 | 54 |
} |
59 | 55 |
|
Also available in: Unified diff