Skip to content

Fix system with chdir hanging#6580

Closed
headius wants to merge 1 commit intojruby:masterfrom
headius:popen_chdir_fix
Closed

Fix system with chdir hanging#6580
headius wants to merge 1 commit intojruby:masterfrom
headius:popen_chdir_fix

Conversation

@headius
Copy link
Member

@headius headius commented Feb 25, 2021

It seems like the change in #6226 (backported as #6568) to use exec to run the subcommand after doing an sh to chdir may be causing system with chdir to hang under some circumstances (#6579).

This PR removes the exec, which should put us back to the old behavior other than how we handle the actual command args by evaluating "$@".

cc @mrnoname1000 for assistance

This appears to cause the execution to hang, or something.
@headius headius added this to the JRuby 9.2.16.0 milestone Feb 25, 2021
@headius
Copy link
Member Author

headius commented Feb 25, 2021

Might be more correct to replace exec with eval but I will confer with @mrnoname1000.

@headius
Copy link
Member Author

headius commented Feb 26, 2021

The exec was not at fault. See #6582.

@headius headius closed this Feb 26, 2021
@headius headius deleted the popen_chdir_fix branch February 26, 2021 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant