---
title: task_set_corpse_forking_behavior
framework: Kernel
role: symbol
role_heading: Function
platforms: [macOS 12.0+]
path: kernel/3852602-task_set_corpse_forking_behavior
---

# task_set_corpse_forking_behavior

## Declaration

```occ
kern_return_t task_set_corpse_forking_behavior(task_t task, task_corpse_forking_behavior_t behavior);
```
