diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-02-01 11:00:01 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-02-01 11:00:01 +0100 |
| commit | f2979ea7868a71ce0e9f9e53f717cd70385e43af (patch) | |
| tree | cd1c0a868c2cfc1ce8765206e6a7adc4f021b6ac /ipc | |
| parent | 1d3ef1f50aff47e9ddaa6bd228b6ce18ce6a41a5 (diff) | |
ipc: fix hangs in debug mode
exec waits for readDone channel, but it is not closed in debug mode.
Close readDone in debug mode.
Diffstat (limited to 'ipc')
| -rw-r--r-- | ipc/ipc.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ipc/ipc.go b/ipc/ipc.go index e2b046028..a014ab56b 100644 --- a/ipc/ipc.go +++ b/ipc/ipc.go @@ -438,6 +438,7 @@ func makeCommand(pid int, bin []string, timeout time.Duration, flags uint64, inF } }(c) } else { + close(c.readDone) cmd.Stdout = os.Stdout cmd.Stderr = os.Stdout } |
