]> xenbits.xensource.com Git - libvirt.git/commit
virsh-domain: Avoid killing ssh transport tunnels when cancelling job
authorPeter Krempa <pkrempa@redhat.com>
Thu, 29 Aug 2013 13:18:20 +0000 (15:18 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 3 Sep 2013 07:55:27 +0000 (09:55 +0200)
commitb46c4787dde79b015dad67dedda4ccf6ff1a3082
tree4afed0f9ade8c117d6443c70153e7f84dfae45dd
parentebef68936396f7eab077e883ac48c4ce0508afa2
virsh-domain: Avoid killing ssh transport tunnels when cancelling job

The vshWatchJob function registers a SIGINT handler that is used to
abort the active job and does not terminate virsh. Unfortunately, this
breaks when using the ssh transport as SIGINT is sent to the foreground
process group including the ssh transport processes which terminate.
This breaks the connection and migration is left in a insane state.

With this patch the terminal is modified to ignore key binding that
sends SIGINT and does the handling manually.

Resoves: https://bugzilla.redhat.com/show_bug.cgi?id=983348
tools/virsh-domain.c