summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src
diff options
context:
space:
mode:
Diffstat (limited to 'openmp/runtime/src')
-rw-r--r--openmp/runtime/src/kmp_runtime.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openmp/runtime/src/kmp_runtime.c b/openmp/runtime/src/kmp_runtime.c
index 4743efce56f..6e6334ea92d 100644
--- a/openmp/runtime/src/kmp_runtime.c
+++ b/openmp/runtime/src/kmp_runtime.c
@@ -2083,6 +2083,10 @@ __kmp_fork_call(
#endif /* OMP_40_ENABLED */
team->t.t_sched = get__sched_2(parent_team, master_tid); // set master's schedule as new run-time schedule
+#if OMP_40_ENABLED
+ team->t.t_cancel_request = cancel_noreq;
+#endif
+
// Update the floating point rounding in the team if required.
propagateFPControl(team);
OpenPOWER on IntegriCloud