[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 1/2] tools/console: reset tty when xenconsole fails



On Mon, 2014-03-17 at 16:24 +0000, Ian Jackson wrote:
> @@ -383,9 +390,9 @@ int main(int argc, char **argv)
>       }
>  
>       init_term(spty, &attr);
> -     init_term(STDIN_FILENO, &attr);
> +     init_term(STDIN_FILENO, &stdin_old_attr);
> +        atexit(restore_term_stdin); /* if this fails, oh dear */

Hard tab?

Otherwise, with the commit message amended as discussed with George:
Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

>       console_loop(spty, xs, path);
> -     restore_term(STDIN_FILENO, &attr);
>  
>       free(path);
>       free(dom_path);



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.