Skip to content

Handle nil-or-boolean arguments in popen kwargs - #9626

Merged
headius merged 2 commits into
jruby:masterfrom
headius:check_boolean
Sep 1, 2026
Merged

headius merged 2 commits into
jruby:masterfrom
headius:check_boolean

Conversation

@headius

@headius headius commented Sep 1, 2026

Copy link
Copy Markdown
Member

Three popen/spawn kwargs require either nil or Boolean, rejecting other "truthy" values: unsetenv_others, close_others, and exception. Not erroring here led to unexpected exec during specs, sometimes breaking the spec run.

This is part of fixes for #9609, but that involves Process.exec which is not yet hooked up to this ported logic. A separate PR will be started to make that connection.

C API equivalent: rb_bool_expected
Three popen/spawn kwargs require either nil or Boolean, rejecting
other "truthy" values: unsetenv_others, close_others, and
exception. Not erroring here led to unexpected exec during specs,
sometimes breaking the spec run.

Fixes jruby#9609
@headius headius added this to the JRuby 10.1.2.0 milestone Sep 1, 2026
@headius
headius merged commit 35c299f into jruby:master Sep 1, 2026
237 of 240 checks passed
@headius
headius deleted the check_boolean branch September 1, 2026 19:20
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