If stdio fds are missing (ex. fd 0 is not present), chg might open
fds that take the numbers 0, and attachio would send the wrong fds
to the client, which might cause unwanted behaviors. Avoid that by
detecting the missing fds and falling back to the original hg.
Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHG5eee6f4f3d0d: chg: fallback to original hg if stdio fds are missing
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
This looks like a legit bug fix. And when I see patches like this, I wonder what circumstances led to its discovery :p
Comment Actions
Context here. There was a similar issue in watchman. It seems this can be an easy "mistake" using the posix_spawn API.