ddollar/foreman — Issue #99: Forman makes $stdin appear to be a TTY.
Author: leehambley
Created: 2011-11-28 09:59:00+00:00
State: open

I believe this is a bug, as some programs (`ruby-debug`) assume this means they can ask for user input, which isn't true when running under `foreman`.

Test Case:
``` text
# Procfile
tty: ruby -e 'puts $stdin.tty?'
```

The output for me, unfortunately is `true`. I believe this caused #58 (`ruby-debug` related).

It should be an easy fix, and would enable the proposed solution there to be modified to:

``` ruby
Debugger.start_remote unless $stdin.tty?
```

Ensuring we could have a remote debugger under `foreman` ( and production, staging, etc ) - but an inline debugger in `rake` and other runners.

**Note:** I haven't checked if `ruby-debug` actually honors `$stdin.tty?`, and I don't know if this is an easy fix for `foreman`.

I'm also certain that `ruby-deubg` isn't the only usecase for this.