Skip to content

Conversation

@straight-shoota
Copy link
Member

@straight-shoota straight-shoota commented Nov 18, 2025

When we try to exec a new process image, this might fail for a number of reason (e.g. executable not found or not executable). As a result, the current process continues and Process.exec raises an appropriate exception. This exception can be caught somewhere and we should avoid any changes intended for the new process image to permanently affect the current process' environment.
Using Dir.cd with a block ensures the directory is reset at the end of the block.

Follow-up #16369

@straight-shoota straight-shoota self-assigned this Nov 18, 2025
@straight-shoota straight-shoota added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:system platform:unix labels Nov 18, 2025
@straight-shoota straight-shoota added this to the 1.19.0 milestone Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:bug A bug in the code. Does not apply to documentation, specs, etc. platform:unix topic:stdlib:system

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants