You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A shell command that exits at once hangs ProcessSample on Windows #5
The test runs the command with Process.spawn(env, "exit 3", unsetenv_others: true, ...), where env is only PATH. Ruby on Windows runs exit (a command of cmd.exe's) through cmd.exe. I switched the test back to Ruby's exit 3 on Windows, which reports at once, so the cause is still unknown.
Two guesses. cmd.exe may not start or end properly with no SystemRoot or COMSPEC in its environment. Or the handle Native::Windows::Spawned opens on a process that ends that quickly may never be signalled. Either way a benchmark command that goes through the shell on Windows could hang the same way, so it's worth finding out. The first step is to reproduce it with Process.spawn({"PATH" => ENV["PATH"]}, "exit 3", unsetenv_others: true) alone, with and without SystemRoot.
Activity
Say why a process benchmark's command can't start
Say why a process benchmark's command can't start