Commit 0f9761b
committed
fix: split erlang CLI args to prevent BEAM hang with spawn+wait
Passing '-elixir ansi_enabled true' and '-s elixir start_cli' as single
argv entries (with embedded spaces) caused the BEAM to hang in __select
when spawned via std.process.spawn on macOS. erlexec passes them through
to beam.smp as-is, and beam.smp doesn't split space-delimited args.
Splitting them into separate argv entries fixes the hang.1 parent e18b81d commit 0f9761b
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| |||
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
| 103 | + | |
| 104 | + | |
99 | 105 | | |
100 | 106 | | |
101 | 107 | | |
| |||
0 commit comments