From 752fc2cc466e737f5f78bdee64cf751493081368 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Mon, 12 Dec 2016 15:28:14 -0800 Subject: [PATCH] Fix logrus imports and runc.IO closer method Signed-off-by: Michael Crosby --- execution/executors/oci/io.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/execution/executors/oci/io.go b/execution/executors/oci/io.go index 8212d2b11..2163f1ca7 100644 --- a/execution/executors/oci/io.go +++ b/execution/executors/oci/io.go @@ -49,13 +49,5 @@ func (o OIO) cleanup() { if o.master != nil { o.master.Close() } - if o.rio.Stdin != nil { - o.rio.Stdin.(*os.File).Close() - } - if o.rio.Stdout != nil { - o.rio.Stdout.(*os.File).Close() - } - if o.rio.Stderr != nil { - o.rio.Stderr.(*os.File).Close() - } + o.rio.Close() }