ia64/xen-unstable

changeset 8141:69df979de1a7

Don't refuse to clean up after a domain death when the buffer is not empty. If
the domain has gone away, then no-one can attach to the pty because Xend will
have cleaned up the entries in the store, so the pty will never become ready to
write. The buffer will never get emptied, so cleanup will never occur. This
leaks ptys, file descriptors, and memory. Simply throw those data away instead.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Wed Nov 30 18:48:27 2005 +0000 (2005-11-30)
parents e33f8d664e2d
children b21b476f5cb7
files tools/console/daemon/io.c
line diff
     1.1 --- a/tools/console/daemon/io.c	Wed Nov 30 18:43:00 2005 +0000
     1.2 +++ b/tools/console/daemon/io.c	Wed Nov 30 18:48:27 2005 +0000
     1.3 @@ -376,9 +376,6 @@ static void remove_domain(struct domain 
     1.4  
     1.5  static void cleanup_domain(struct domain *d)
     1.6  {
     1.7 -	if (!buffer_empty(&d->buffer))
     1.8 -		return;
     1.9 -
    1.10  	if (d->tty_fd != -1) {
    1.11  		close(d->tty_fd);
    1.12  		d->tty_fd = -1;