Move runas.h to common/ directory
[lttng-tools.git] / common / runas.c
index f612ccc7554590a44fdeca167a33f29d4b0ee0d0..22bd2fe8fab208ba6fdc00fc9d37cb91c0cf1244 100644 (file)
@@ -32,6 +32,8 @@
 
 #include <lttngerr.h>
 
+#include "runas.h"
+
 #define CHILD_STACK_SIZE       10485760
 
 struct run_as_data {
@@ -230,7 +232,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.022903 seconds and 4 git commands to generate.