[libvirt] [PATCH 1/3] command: introduce virPidWait, virPidAbort

Matthias Bolte matthias.bolte at googlemail.com
Thu Jul 14 17:34:01 UTC 2011


2011/7/12 Eric Blake <eblake at redhat.com>:
> When using virCommandRunAsync and saving the pid for later, it
> is useful to be able to reap that pid in the same way that it
> would have been auto-reaped by virCommand if we had passed
> NULL for the pid argument in the first place.
>
> * src/util/command.c (virPidWait, virPidAbort): New functions,
> created from...
> (virCommandWait, virCommandAbort): ...bodies of these.
> (includes): Drop duplicate <stdlib.h>.  Ensure that our pid_t
> assumptions hold.
> (virCommandRunAsync): Improve documentation.
> * src/util/command.h (virPidWait, virPidAbort): New prototypes.
> * src/libvirt_private.syms: Export them.
> * docs/internals/command.html.in: Document them.
> ---
>  docs/internals/command.html.in |   17 +++++
>  src/libvirt_private.syms       |    2 +
>  src/util/command.c             |  140 ++++++++++++++++++++++++++++------------
>  src/util/command.h             |   28 ++++++++
>  4 files changed, 146 insertions(+), 41 deletions(-)

ACK.

-- 
Matthias Bolte
http://photron.blogspot.com




More information about the libvir-list mailing list