From cc3b7a5e9a2c7d1bae716e2c4107ce9bf6f2dae7 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Fri, 18 Aug 2017 09:58:47 -0400 Subject: [PATCH] Revert part of 06dc87ae59cca1536a3a98741a267af687b6dcdd Fixes #1389 This reverts waiting on stdin to finish its IO copy before returning out. This was causing `ctr` to block for every container start/exit. Signed-off-by: Michael Crosby --- io_unix.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/io_unix.go b/io_unix.go index 47bf71932..d8d015b8d 100644 --- a/io_unix.go +++ b/io_unix.go @@ -54,12 +54,10 @@ func copyIO(fifos *FIFOSet, ioset *ioSet, tty bool) (_ *wgCloser, err error) { } set = append(set, f) cwg.Add(1) - wg.Add(1) go func(w io.WriteCloser) { cwg.Done() io.Copy(w, ioset.in) w.Close() - wg.Done() }(f) if f, err = fifo.OpenFifo(ctx, fifos.Out, syscall.O_RDONLY|syscall.O_CREAT|syscall.O_NONBLOCK, 0700); err != nil {