mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
Without this we leak an fd on each domain shutdown and eventually run
out of file descriptors meaning new the console of new domains are not logged. Seems to have been accidentally removed in 16638:28921e83000b. Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
1 parent
870648146f
commit
1f7a33f7c7
1 file changed
+5
@@ -747,6 +747,11 @@ static void cleanup_domain(struct domain *d)
|
||||
{
|
||||
domain_close_tty(d);
|
||||
|
||||
if (d->log_fd != -1) {
|
||||
close(d->log_fd);
|
||||
d->log_fd = -1;
|
||||
}
|
||||
|
||||
free(d->buffer.data);
|
||||
d->buffer.data = NULL;
|
||||
|
||||
|
||||