]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
command: introduce virPidWait, virPidAbort
authorEric Blake <eblake@redhat.com>
Tue, 12 Jul 2011 16:42:41 +0000 (10:42 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 14 Jul 2011 17:56:30 +0000 (11:56 -0600)
commite208c38b4908692bc83c81af85bcffbb1c7a5db3
treebc10a04b74c7d71ee8f2dae7120aab37c6ac8eba
parent3d7320403b8dd8b224a0c1eb832cfb2e89818ed3
command: introduce virPidWait, virPidAbort

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
src/libvirt_private.syms
src/util/command.c
src/util/command.h