Commit 8e6f1d5
docs: document fork-safety limitation for gRPC channels (#111)
gRPC channels are not fork-safe. Forking after creating a ConfigClient
(or while a ConfigWatcher thread runs) results in undefined behavior —
the child inherits the channel's internal threads and file descriptors
in an unrecoverable state.
Adds a "Fork safety" section to watching.md with an explanation,
a multiprocessing.Pool example showing the correct pattern, and a note
on preferring the spawn start method. Adds a brief callout to README.md
linking to that section.
Closes #69
Co-authored-by: Claude <noreply@anthropic.com>1 parent 65de401 commit 8e6f1d5
2 files changed
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
123 | 158 | | |
124 | 159 | | |
125 | 160 | | |
| |||
0 commit comments