Skip to content

Commit 5a6d9f3

Browse files
committed
Fix windows build for io options
Signed-off-by: Michael Crosby <[email protected]>
1 parent 90a5d16 commit 5a6d9f3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

io_windows.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,14 @@
1919
package runc
2020

2121
// NewPipeIO creates pipe pairs to be used with runc
22-
func NewPipeIO() (i IO, err error) {
22+
func NewPipeIO(opts ...IOOpt) (i IO, err error) {
2323
option := defaultIOOption()
2424
for _, o := range opts {
2525
o(option)
2626
}
2727
var (
2828
pipes []*pipe
2929
stdin, stdout, stderr *pipe
30-
err error
3130
)
3231
// cleanup in case of an error
3332
defer func() {

0 commit comments

Comments
 (0)