Skip to content

Commit

Permalink
Merge pull request #3348 from mxpv/new-binary-io
Browse files Browse the repository at this point in the history
Make newBinaryIO public
  • Loading branch information
AkihiroSuda committed Jun 16, 2019
2 parents 062d056 + bca5667 commit cbb108e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions runtime/v1/linux/proc/io.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func createIO(ctx context.Context, id string, ioUID, ioGID int, stdio proc.Stdio
pio.copy = true
pio.io, err = runc.NewPipeIO(ioUID, ioGID, withConditionalIO(stdio))
case "binary":
pio.io, err = newBinaryIO(ctx, id, u)
pio.io, err = NewBinaryIO(ctx, id, u)
case "file":
if err := os.MkdirAll(filepath.Dir(u.Host), 0755); err != nil {
return nil, err
Expand Down Expand Up @@ -251,7 +251,8 @@ func isFifo(path string) (bool, error) {
return false, nil
}

func newBinaryIO(ctx context.Context, id string, uri *url.URL) (runc.IO, error) {
// NewBinaryIO runs a custom binary process for pluggable shim logging
func NewBinaryIO(ctx context.Context, id string, uri *url.URL) (runc.IO, error) {
ns, err := namespaces.NamespaceRequired(ctx)
if err != nil {
return nil, err
Expand Down

0 comments on commit cbb108e

Please sign in to comment.