Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change log

## [Unreleased]

### Fixed
* Fix "can't alloc thread" error in Command#run from non-main thread's rescue/ensure block

## [v0.10.1] - 2021-02-14

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion lib/tty/command/process_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def read_streams(stdout, stderr)
#
# @api private
def read_stream(stream, handler)
Thread.new do
Thread.start do
if Thread.current.respond_to?(:report_on_exception)
Thread.current.report_on_exception = false
end
Expand Down