Files
containerd/cmd/ctr
Ian Campbell d7deba03a2 prepareStdio: use named return for err
This avoids issues with the various deferred error handlers in the event that
`err` is shadowed or named differently, which this function currently avoids
but which is an easy trap to fall into.

Since named return values are all or nothing we need to name the waitGroup too
and adjust the code to suite.

Thanks to Aaron Lehmann for the suggestion, see also
https://github.com/docker/swarmkit/pull/1965#discussion_r118137410

Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2017-05-24 15:34:39 +01:00
..
2017-05-23 17:18:31 -07:00
2017-05-23 14:22:20 -07:00
2017-04-07 09:20:44 -07:00
2017-05-22 15:34:45 -07:00
2017-03-30 11:32:13 +03:00
2017-05-23 14:22:20 -07:00
2017-05-16 13:48:53 -07:00
2017-05-11 09:07:43 +00:00