Commit 92f0ae6
use spawn multiprocessing method for sidecar env server (#917)
* Use spawn multiprocessing method for sidecar env server
Switch from the default fork method to spawn when creating the env
server subprocess. Fork inherits all file descriptors from the parent,
which means multiple env server subprocesses can share sockets and
other fds, leading to hangs. Spawn starts a fresh interpreter and
avoids this class of issues.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* use mp
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 2b9ce72 commit 92f0ae6
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
149 | | - | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| |||
1268 | 1269 | | |
1269 | 1270 | | |
1270 | 1271 | | |
1271 | | - | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
1272 | 1276 | | |
1273 | 1277 | | |
1274 | 1278 | | |
| |||
0 commit comments