Skip to content

Commit c078e12

Browse files
authored
chore: fix SnippetValidator to not leak processes. (#754)
Previously, it would leak the `rackup` processes.
1 parent 9323b45 commit c078e12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

script/readme_snippets/ruby_snippet_validator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def execute_rack_config(config_file_path)
109109
rackup_output = "tmp/rackup_output.log"
110110

111111
success, output = execute_process_with_timeout(RACK_TIMEOUT_SECONDS) do
112-
spawn("bundle exec rackup #{Shellwords.escape(config_file_path)} --port 0 2>&1", out: rackup_output, err: rackup_output)
112+
spawn("bundle", "exec", "rackup", config_file_path, "--port", "0", out: rackup_output, err: rackup_output)
113113
end
114114

115115
# For rack configs, we need to check the output file for success indicators

0 commit comments

Comments
 (0)