]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
Linux vmware-user: set the hibernation-safe flag.
authorVMware, Inc <>
Wed, 24 Feb 2010 22:24:16 +0000 (14:24 -0800)
committerMarcelo Vanzin <mvanzin@vmware.com>
Wed, 24 Feb 2010 22:24:16 +0000 (14:24 -0800)
commit7d71b9832093bfca55a022316cd4fccf7b8dcc50
tree34e130a02b88f686fa7bb0358bc17dd149f6548a
parenta61f6ba7979c94873f2de69c3d68668efa910092
Linux vmware-user:  set the hibernation-safe flag.

* ryanb .oO( <mvanzin> I told you so. )

So, like, remember that hibernation hack I put in place last May?  Turns
out it was hella racy.  This became evident when QA noticed on SLED 11 that
the post-thaw wakeup signal might take a while to arrive.  Until that happened,
vmware-user may have already run through the RpcIn event loop and errored out,
as its RpcIn state is out of sync with the VMX's.

So this change introduces another hack.  Luckily for me, mvanzin is doing
the carnaval thing and isn't here to interfere.  Mwahaha, etc.

In short, this change modifies the RpcIn error handler, only if called after
RpcIn had been working, to set the "reload yo'se'f" bits.  (That test is to
avoid needlessly/endlessly reloading itself should there really be another
vmware-user instance running (or a similar terminal case).)

After this change is submitted, a subsequent changeset will back-out CLN
852538.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/vmware-user/vmware-user.cpp