From: Mathieu Desnoyers Date: Fri, 13 Jan 2012 21:18:27 +0000 (-0500) Subject: Remove CLONE_VM flag X-Git-Tag: v2.0-pre17~16 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9beed4cb465347c778e4f982c330cef78f2628b7;p=lttng-tools.git Remove CLONE_VM flag Makes debugging with GDB impossible. We'll have to revisit the actual performance impact of not having CLONE_VM in place eventually. Signed-off-by: Mathieu Desnoyers --- diff --git a/common/runas.c b/common/runas.c index f612ccc75..b3fa81469 100644 --- a/common/runas.c +++ b/common/runas.c @@ -230,7 +230,7 @@ int run_as(int (*cmd)(void *data), void *data, uid_t uid, gid_t gid) * where the stack grows up (HPPA). */ pid = clone(child_run_as, child_stack + (CHILD_STACK_SIZE / 2), - CLONE_FILES | SIGCHLD | CLONE_VM, + CLONE_FILES | SIGCHLD, &run_as_data, NULL); if (pid < 0) { perror("clone");