Commit e69f40a
macos: inject CFBundleIdentifier in subprocess before MachPortRendezvous lookup
CEF 130+ builds the MachPortRendezvousClient service name as:
CFBundleIdentifier + ".MachPortRendezvousServer." + parent_pid
The browser process injects CFBundleIdentifier = "org.cefpython" via
MacInitialize() in util_mac.mm before CefInitialize(), so it registers:
"org.cefpython.MachPortRendezvousServer.<pid>"
The subprocess binary is a flat binary (not in an app bundle), so
CFBundleGetMainBundle() returns no CFBundleIdentifier and the client
looks up ".MachPortRendezvousServer.<parent_pid>" — a name starting with
"." that bootstrap_look_up can never find (BOOTSTRAP_UNKNOWN_SERVICE 1102).
This caused every spawned subprocess to terminate immediately with
"No rendezvous client, terminating process (parent died?)".
Fix: add main_mac.mm (compiled only on Apple) which injects the same
"org.cefpython" bundle identifier into the subprocess's main bundle dict
before CefExecuteProcess runs, matching what the parent registered.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent eadf73a commit e69f40a
2 files changed
Lines changed: 44 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
33 | 45 | | |
34 | 46 | | |
35 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
0 commit comments