Coder Social home page Coder Social logo

Comments (5)

jiangliu avatar jiangliu commented on May 18, 2024

We have introduced PipedStdIo to help the situation, https://github.com/containerd/rust-extensions/blob/main/crates/runc/src/io.rs#L250.
Will it help here?

from rust-extensions.

Burning1020 avatar Burning1020 commented on May 18, 2024

We have introduced PipedStdIo to help the situation, https://github.com/containerd/rust-extensions/blob/main/crates/runc/src/io.rs#L250. Will it help here?

PipedStdIo helps. My point is in order to override it, every command options need a pub io: Option<Arc<dyn Io>> field member.

from rust-extensions.

jiangliu avatar jiangliu commented on May 18, 2024

As we have provided both InheritedStdIo and PipedStdIo, it would be reasonable to make the most popular one as the default. And it's easy to override it when the default value doesn't work.

from rust-extensions.

Burning1020 avatar Burning1020 commented on May 18, 2024

As you see in #37 (comment), stdout and stderr are empty in the returned error message.

2022-02-27T22:25:36.2249644Z     container_test.go:716: expected error "not found" but received "Others(\"Other: unknown error after kill: runc command failed: status=exit status: 1, stdout=\\\"\\\", stderr=\\\"\\\"\"): unknown"

The reason may be that they are deliverd to shim stdio and redirected to /dev/null.

from rust-extensions.

Burning1020 avatar Burning1020 commented on May 18, 2024
  1. Inherited StdIo will pass the stdout/stderr to parent process stdio.
  2. Piped StdIo will pass them to parent process itself.

If first one is by default, we need add a io member in every command optios so as to deliver output to shim process itself instead of its stdio.

from rust-extensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.