Skip to content

crash when $stdout is a socket #1352

@Kshitij-Banerjee

Description

@Kshitij-Banerjee

I use spin for my development,

when running pry via a spin push, the $stdout is a socket and I get the following error.

before_session hook failed: Errno::EOPNOTSUPP: Operation not supported on socket
/Users/kshitij.banerjee/.rvm/gems/ruby-1.9.3-p551/gems/pry-0.9.12.6/lib/pry/terminal.rb:45:in `winsize'

45       $stdout.winsize if $stdout.tty? and $stdout.respond_to?(:winsize)   

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions