<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Dispatch",
  "identifier" : "/documentation/Dispatch/DispatchSource/ProcessEvent",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Dispatch"
    ],
    "preciseIdentifier" : "s:So18OS_dispatch_sourceC8DispatchE12ProcessEventV"
  },
  "title" : "DispatchSource.ProcessEvent"
}
-->

# DispatchSource.ProcessEvent

Events related to a process.

```
struct ProcessEvent
```

## Topics

### Process Event Flags

[`all`](/documentation/Dispatch/DispatchSource/ProcessEvent/all)

All process-related events.

[`exec`](/documentation/Dispatch/DispatchSource/ProcessEvent/exec)

The process became another executable image.

[`exit`](/documentation/Dispatch/DispatchSource/ProcessEvent/exit)

The process has exited (perhaps cleanly, perhaps not).

[`fork`](/documentation/Dispatch/DispatchSource/ProcessEvent/fork)

The process created one or more child processes.

[`signal`](/documentation/Dispatch/DispatchSource/ProcessEvent/signal)

The process received a UNIX signal.

### Initializing the Type

### Expressing the Type

### Managing the Type

### Comparing the Type



---

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)