Open dmeremyanin opened 10 months ago
Timeout isn't working as expected if both stdout and stderr are redirected.
TTY::Command.new(printer: :quiet).run!('sleep 5', timeout: 1, [:out, :err] => '/dev/null')
The code above doesn't fail. It takes 5 seconds to run and ignores the timeout option set to 1 second.
The code above should raise an exception.
Describe the problem
Timeout isn't working as expected if both stdout and stderr are redirected.
Steps to reproduce the problem
Actual behaviour
The code above doesn't fail. It takes 5 seconds to run and ignores the timeout option set to 1 second.
Expected behaviour
The code above should raise an exception.
Describe your environment