]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/task_policy.c
xnu-3789.21.4.tar.gz
[apple/xnu.git] / osfmk / kern / task_policy.c
index 6d9f28919addda4bfeb4ce97446d475eba012fd7..dcd6fc472ffdfd984ebdc435f858e5f9d5d0ba5b 100644 (file)
@@ -664,7 +664,8 @@ task_policy_create(task_t task, task_t parent_task)
        task->requested_policy.trp_terminated       = parent_task->requested_policy.trp_terminated;
        task->requested_policy.trp_qos_clamp        = parent_task->requested_policy.trp_qos_clamp;
 
-       if (task->requested_policy.trp_apptype == TASK_APPTYPE_DAEMON_ADAPTIVE) {
+       if (task->requested_policy.trp_apptype == TASK_APPTYPE_DAEMON_ADAPTIVE && !task_is_exec_copy(task)) {
+               /* Do not update the apptype for exec copy task */
                if (parent_task->requested_policy.trp_boosted) {
                        task->requested_policy.trp_apptype = TASK_APPTYPE_DAEMON_INTERACTIVE;
                        task_importance_mark_donor(task, TRUE);