aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
Diffstat (limited to 'executor')
-rw-r--r--executor/executor.cc2
1 files changed, 1 insertions, 1 deletions
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)