Summary: | [systemd-nspawn] Doesn't correctly handle std{in,out} not being the same file, and not being a TTY | ||
---|---|---|---|
Product: | systemd | Reporter: | Luke Shumaker <lukeshu> |
Component: | general | Assignee: | systemd-bugs |
Status: | RESOLVED FIXED | QA Contact: | systemd-bugs |
Severity: | normal | ||
Priority: | medium | CC: | freedesktop |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
A patch fixing bugs 1-2; stdout-redirection.
Fix for stdout redirection (bugs 1-2) |
Description
Luke Shumaker
2013-10-08 17:49:17 UTC
Actually, I don't think it is necessary to reset attr.c_cc. Created attachment 87300 [details] [review] A patch fixing bugs 1-2; stdout-redirection. This is a patch of two git commits that fix bugs 1 and 2, respectively. This means that stdout redirection works. Playing with the patch I just uploaded, I noticed a slight issue it created: Information written to stderr is now subject to raw terminal interpretation. This can be fixed by appending '\r' to the log messages (ugly), or by resetting stdin right after the current settings for stdout are read, then setting them both later (where it was set before the patch) (less ugly). Created attachment 87351 [details] [review] Fix for stdout redirection (bugs 1-2) This fixes the bug in the last patch described in my comment; it uses the less ugly method of resetting stdin after stdout has been detected. Patches applied as eaf73b0616 and 90d14d2015. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.