diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-10-10 21:05:52 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-10-10 21:05:52 +0000 |
commit | 2e388e8a3740aa470276b78027f51304a7f0ff92 (patch) | |
tree | cd3ad5b00bf2548210835086577af3b4c1b05b65 /generator | |
parent | 7376811983060f94552d90576aed61955102c68d (diff) | |
download | libguestfs-2e388e8a3740aa470276b78027f51304a7f0ff92.tar.gz libguestfs-2e388e8a3740aa470276b78027f51304a7f0ff92.tar.xz libguestfs-2e388e8a3740aa470276b78027f51304a7f0ff92.zip |
launch: Add warning not to avoid calling launch twice on the same handle.
For more information on this topic, see:
https://www.redhat.com/archives/libguestfs/2012-October/msg00045.html
Diffstat (limited to 'generator')
-rw-r--r-- | generator/actions.ml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/generator/actions.ml b/generator/actions.ml index 0c1f4ab2..13e54f39 100644 --- a/generator/actions.ml +++ b/generator/actions.ml @@ -197,7 +197,12 @@ Internally libguestfs is implemented by running a virtual machine using L<qemu(1)>. You should call this after configuring the handle -(eg. adding drives) but before performing any actions." }; +(eg. adding drives) but before performing any actions. + +Do not call C<guestfs_launch> twice on the same handle. Although +it will not give an error (for historical reasons), the precise +behaviour when you do this is not well defined. Handles are +very cheap to create, so create a new one for each launch." }; { defaults with name = "wait_ready"; |