[Pkg-libvirt-commits] [libguestfs] 248/266: p2v: Send SIGHUP (not SIGTERM) to kill child process.

Hilko Bengen bengen at moszumanska.debian.org
Fri Oct 3 14:42:52 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag debian/1%1.27.35-1
in repository libguestfs.

commit 04740c5a35654688183c50863c80b9a427019922
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Mon Sep 1 16:06:05 2014 +0100

    p2v: Send SIGHUP (not SIGTERM) to kill child process.
    
    One reason is that when testing the child process will be bash (not
    ssh), and bash is documented to ignore SIGTERM when it is running
    interactively.
---
 p2v/conversion.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/p2v/conversion.c b/p2v/conversion.c
index f375805..3446d0e 100644
--- a/p2v/conversion.c
+++ b/p2v/conversion.c
@@ -302,7 +302,7 @@ cleanup_data_conns (struct data_conn *data_conns, size_t nr)
        * these ssh connections is to send a signal.  Just closing the
        * pipe doesn't do anything.
        */
-      kill (data_conns[i].h->pid, SIGTERM);
+      kill (data_conns[i].h->pid, SIGHUP);
       mexp_close (data_conns[i].h);
     }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list