ptr = Xmemcpy(ptr, ".startup", sizeof(".startup"));
*ptr = '\0';
- if (!lockfile(&fd, tmp, LOCK_EX, 30, &err)) {
+ if (!lockfile(&fd, tmp, F_LOCK, 30, &err)) {
WRITE_MSG(2, "vserver.start: failed to lock '");
WRITE_STR(2, tmp);
WRITE_MSG(2, "': ");
struct vc_vx_info info;
xid = vc_getVserverCtx(opts.VSERVER_DIR, vcCFG_RECENT_FULL,
- true, &is_running);
+ true, &is_running, vcCTX_XID);
if (xid!=VC_NOCTX && vc_get_vx_info(xid, &info)!=-1) {
WRITE_MSG(2, "vserver.start: vserver '");
execScriptlets(&cfgdir, opts.VSERVER_NAME, "prepre-start");
activateInterfaces(&cfg.interfaces);
- xid = Evc_ctx_create(cfg.xid);
+ xid = Evc_ctx_create(cfg.xid, NULL);
setCFlag(xid, VC_VXF_INFO_NAMESPACE);
mountVserver(&cfg);