X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fsyscall_ctxcreate-v13.hc;h=250f1fd259346b2aa94710db42d8ad2446a6c82e;hb=a6be71d3e49f0f633705ba5e4e08cc1cac811344;hp=930ed180f55aa988f907f49d8e8623969735778a;hpb=183a694eeaacf1c3268c4e487731c4a7438132e0;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); }