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

Re: [Libguestfs] setpgid() before exec'ing qemu

On Fri, Mar 11, 2011 at 05:26:50PM +0000, Richard W.M. Jones wrote:
> As Chris says, any reason to be using kill_subprocess at all?

Actually as Chris *didn't* say, I was reading that wrong :-)

Anyway, I'd try deleting the handle.  AFAIK Python will run the
destructor immediately, and the path taken via guestfs_close certainly
kills the subprocess:


If you're really worried about the subprocess staying around, then
grab the PID (g.get_pid) and kill the process *after* deleting the
handle.  (This is way outside the scope of the API ...)


Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.

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