[Libguestfs] [PATCH] handle --debug-gc universally via at_exit hook
Richard W.M. Jones
rjones at redhat.com
Fri Aug 28 16:51:41 UTC 2015
On Fri, Aug 28, 2015 at 05:56:04PM +0300, Roman Kagan wrote:
> Several tools handle --debug-gc command-line option, by explicitly
> forcing GC on every exit path. This is tedious and prone to forgetting
> some of the exit paths.
>
> Instead, add a generic handler for --debug-gc, which installs an at_exit
> hook to do the GC consistency check, and which can be called right in
> the command-line parser. Also adjust all users of --debug-gc to use
> that handler.
>
> Signed-off-by: Roman Kagan <rkagan at virtuozzo.com>
ACK. I'll push this in an hour or two once I've finished running
some (unrelated) tests.
Thanks,
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
More information about the Libguestfs
mailing list