X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=common%2Frunas.c;h=22bd2fe8fab208ba6fdc00fc9d37cb91c0cf1244;hb=0857097f7cd49f503c966eb42716415dd5540352;hp=f612ccc7554590a44fdeca167a33f29d4b0ee0d0;hpb=58415b8b6071fddaa8f99c9799e9c30608dbb971;p=lttng-tools.git diff --git a/common/runas.c b/common/runas.c index f612ccc75..22bd2fe8f 100644 --- a/common/runas.c +++ b/common/runas.c @@ -32,6 +32,8 @@ #include +#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");