The userlock module relies on this flag to not get into a panic loop
from lock rank violation when we are trying to dump core. This is
the default Panic() implementation used by UI and other apps. For
other apps that stub out Panic(), they are not likely to use MXUser
locks.
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
#include "str.h"
#include "config.h"
#include "util.h"
+#include "userlock.h"
#if defined(_WIN32) || !defined(VMX86_TOOLS)
#include "coreDump.h"
#endif
char buf[1024];
static int count = 0;
+ MXUser_SetInPanic();
+
Str_Vsnprintf(buf, sizeof buf, format, args);
/*