diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-04-26 15:33:12 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-04-26 16:48:47 +0100 |
commit | a505423e589b4820745e855c49dded60afc04f6a (patch) | |
tree | f4ac5dc0141d0974ad4f7703996f0da78deed9f9 /src/launch.c | |
parent | eafefab93756b980bdb892df86e1ac3e5b88a260 (diff) | |
download | libguestfs-a505423e589b4820745e855c49dded60afc04f6a.tar.gz libguestfs-a505423e589b4820745e855c49dded60afc04f6a.tar.xz libguestfs-a505423e589b4820745e855c49dded60afc04f6a.zip |
lib: Remove the BUSY state.
Originally this state was intended so that in some way you could find
out if the appliance was running a command. However there was never a
thread-safe way to access the state of the handle, so in effect you
could never do anything useful safely with this information.
This commit completely removes the BUSY state.
The only visible change is to the guestfs_is_busy API. Previously you
could never call this safely from another thread. If you called it
from the same thread it would always return false (since the current
thread can't be running a libguestfs command at that point by
definition). Now it always returns false.
Diffstat (limited to 'src/launch.c')
-rw-r--r-- | src/launch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/launch.c b/src/launch.c index b61c538a..c66cbacc 100644 --- a/src/launch.c +++ b/src/launch.c @@ -1456,7 +1456,8 @@ guestfs__is_ready (guestfs_h *g) int guestfs__is_busy (guestfs_h *g) { - return g->state == BUSY; + /* There used to be a BUSY state but it was removed in 1.17.36. */ + return 0; } int |