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

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

 



2011/7/12 Eric Blake <eblake@xxxxxxxxxx>:
> 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]