Add basic fifo support for IO copy
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
e480aedaea
commit
e9f63fc9a4
14 changed files with 141 additions and 191 deletions
|
@ -44,6 +44,7 @@ func (i *IO) Close() error {
|
|||
i.Stdin,
|
||||
i.Stdout,
|
||||
i.Stderr,
|
||||
i.Console,
|
||||
} {
|
||||
if c != nil {
|
||||
if err := c.Close(); oerr == nil {
|
||||
|
@ -51,9 +52,6 @@ func (i *IO) Close() error {
|
|||
}
|
||||
}
|
||||
}
|
||||
if i.Console != nil {
|
||||
oerr = i.Console.Close()
|
||||
}
|
||||
return oerr
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue