Remove CLONE_VM flag
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 13 Jan 2012 21:18:27 +0000 (16:18 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 13 Jan 2012 21:18:27 +0000 (16:18 -0500)
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 <mathieu.desnoyers@efficios.com>
common/runas.c

index f612ccc7554590a44fdeca167a33f29d4b0ee0d0..b3fa81469824ecc6b69979e6a64e408cbd4a5546 100644 (file)
@@ -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");
This page took 0.024787 seconds and 4 git commands to generate.