| ... | ... |
@@ -56,15 +56,6 @@ func daemon() error {
|
| 56 | 56 |
} |
| 57 | 57 |
|
| 58 | 58 |
func runCommand(args []string) error {
|
| 59 |
- var oldState *term.State |
|
| 60 |
- var err error |
|
| 61 |
- if term.IsTerminal(int(os.Stdin.Fd())) && os.Getenv("NORAW") == "" {
|
|
| 62 |
- oldState, err = term.MakeRaw(int(os.Stdin.Fd())) |
|
| 63 |
- if err != nil {
|
|
| 64 |
- return err |
|
| 65 |
- } |
|
| 66 |
- defer term.Restore(int(os.Stdin.Fd()), oldState) |
|
| 67 |
- } |
|
| 68 | 59 |
// FIXME: we want to use unix sockets here, but net.UnixConn doesn't expose |
| 69 | 60 |
// CloseWrite(), which we need to cleanly signal that stdin is closed without |
| 70 | 61 |
// closing the connection. |