From d399ab9dc9ddf7417f2f91c70e6298348312fbab Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 13 Jan 2016 20:44:05 +0100 Subject: executor: don't create all threads when spot a root syscall --- executor/executor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor/executor.cc') diff --git a/executor/executor.cc b/executor/executor.cc index 255712f5f..ab5c20d25 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -371,7 +371,7 @@ thread_t* schedule_call(int n, int call_index, int call_num, uint64_t num_args, int i; for (i = 0; i < kMaxThreads; i++) { thread_t* th = &threads[i]; - if (!th->created) + if (!th->created && (!flag_drop_privs || root == th->root)) thread_create(th, i, false); if (__atomic_load_n(&th->done, __ATOMIC_ACQUIRE)) { if (!th->handled) -- cgit mrf-deployment