Re: [libvirt] [PATCH] virsh: Fix Ctrl-C behavior when watching a job

2015-06-03 Thread Jiri Denemark
On Tue, Jun 02, 2015 at 17:37:35 +0200, Ján Tomko wrote: On Mon, Jun 01, 2015 at 09:05:59PM +0200, Jiri Denemark wrote: When watching a job (save, managedsave, dump, migrate) virsh spawns a thread to call the appropriate API and waits for the result while watching for interruption signals

Re: [libvirt] [PATCH] virsh: Fix Ctrl-C behavior when watching a job

2015-06-02 Thread Ján Tomko
On Mon, Jun 01, 2015 at 09:05:59PM +0200, Jiri Denemark wrote: When watching a job (save, managedsave, dump, migrate) virsh spawns a thread to call the appropriate API and waits for the result while watching for interruption signals (SIGINT, Ctrl-C on the terminal). Whenever such signal is

[libvirt] [PATCH] virsh: Fix Ctrl-C behavior when watching a job

2015-06-01 Thread Jiri Denemark
When watching a job (save, managedsave, dump, migrate) virsh spawns a thread to call the appropriate API and waits for the result while watching for interruption signals (SIGINT, Ctrl-C on the terminal). Whenever such signal is caught, virsh calls virDomainAbortJob, stops waiting for the job, and