return 0;
}
+#else // VC_ENABLE_API_COMPAT
+static char *
+getInitPid_emulated(char UNUSED *buf, xid_t UNUSED xid)
+{
+ WRITE_MSG(2, "tools were built without compat API, getInitPid() not available\n");
+ return 0;
+}
#endif // VC_ENABLE_API_COMPAT
static char *
signed long xid; // type is a small hack, but should be ok...
struct vc_vx_info info;
- if (isNumber(vserver, &xid) && xid>=0)
+ if (isNumber(vserver, &xid, true) && xid>=0)
res = (vc_get_vx_info(xid, &info)==-1) ? 0 : "1";
else
res = (vc_getVserverCtx(vserver, vcCFG_AUTO, false, 0)==VC_NOCTX) ? 0 : "1";