From c9cd9fb53dc2b759f35a0bca5175e0718b8edfee Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Tue, 15 Jul 2008 22:14:13 +0000 Subject: [PATCH] Use sys_clone in Eclone. git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2747 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- ensc_wrappers/wrappers-clone.hc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ensc_wrappers/wrappers-clone.hc b/ensc_wrappers/wrappers-clone.hc index 943514f..eb36fc3 100644 --- a/ensc_wrappers/wrappers-clone.hc +++ b/ensc_wrappers/wrappers-clone.hc @@ -20,15 +20,13 @@ # error wrappers_handler.hc can not be used in this way #endif +#include + inline static WRAPPER_DECL pid_t -Eclone(int (*fn)(void *), void *child_stack, int flags, void *arg) +Eclone(uint64_t flags, void *child_stack) { pid_t res; -#ifndef __dietlibc__ - res = clone(fn, child_stack, flags, arg); -#else - res = clone((void*(*)(void*))(fn), child_stack, flags, arg); -#endif + res = sys_clone(flags, child_stack); FatalErrnoError(res==-1, "clone()"); return res; } -- 1.8.1.5