X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fsyscall_ctxcreate-v13.hc;h=b999ef6f1b0588b71f7d5cfed211b4ed0704e100;hb=4415d2a7377be61789eb5a6e35222962cbe7a146;hp=23c45d96770e20f8fd095dc8fd46774889a0aa12;hpb=b0a62d195efca12c5cb9e7c0b3bea3be2cd57fc9;p=util-vserver.git diff --git a/lib/syscall_ctxcreate-v13.hc b/lib/syscall_ctxcreate-v13.hc index 23c45d9..b999ef6 100644 --- a/lib/syscall_ctxcreate-v13.hc +++ b/lib/syscall_ctxcreate-v13.hc @@ -1,4 +1,4 @@ -// $Id: syscall_ctxcreate-v13.hc 2193 2005-10-28 17:51:09Z ensc $ --*- c -*-- +// $Id: syscall_ctxcreate-v13.hc 2578 2007-08-08 20:05:26Z dhozac $ --*- c -*-- // Copyright (C) 2004 Enrico Scholz // @@ -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); }