<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Dispatch",
  "identifier" : "/documentation/Dispatch/DISPATCH_SOURCE_TYPE_PROC",
  "metadataVersion" : "0.1.0",
  "role" : "Macro",
  "symbol" : {
    "kind" : "Macro",
    "modules" : [
      "Dispatch"
    ],
    "preciseIdentifier" : "c:@macro@DISPATCH_SOURCE_TYPE_PROC"
  },
  "title" : "DISPATCH_SOURCE_TYPE_PROC"
}
-->

# DISPATCH_SOURCE_TYPE_PROC

A type of dispatch source for monitoring a process.

```
#define DISPATCH_SOURCE_TYPE_PROC
```

## Discussion

A dispatch source that monitors an external process for events defined by `Dispatch Source Process Event Flags`. The handle is a process identifier (`pid_t`). The mask is a mask of desired events from `Dispatch Source Process Event Flags`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)