From 9beed4cb465347c778e4f982c330cef78f2628b7 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 13 Jan 2012 16:18:27 -0500 Subject: [PATCH] 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 --- common/runas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.34.1