X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fsyscall_ctxcreate-v13.hc;h=250f1fd259346b2aa94710db42d8ad2446a6c82e;hb=35370e2d11f661d780b71204d61439e31b91fb57;hp=930ed180f55aa988f907f49d8e8623969735778a;hpb=9c78378bebc1a9f3d400f422df8ede9efea57dea;p=util-vserver.git diff --git a/lib/syscall_ctxcreate-v13.hc b/lib/syscall_ctxcreate-v13.hc index 930ed18..250f1fd 100644 --- a/lib/syscall_ctxcreate-v13.hc +++ b/lib/syscall_ctxcreate-v13.hc @@ -21,9 +21,14 @@ #endif static inline ALWAYSINLINE xid_t -vc_ctx_create_v13(xid_t xid) +vc_ctx_create_v13(xid_t xid, struct vc_ctx_flags *flags) { xid_t res = vserver(VCMD_ctx_create_v0, CTX_USER2KERNEL(xid), 0); + if (flags) { + /* no sane way to report errors here */ + vc_set_cflags(xid, flags); + } + return CTX_KERNEL2USER(res); }