Commit Graph

8 Commits

Author SHA1 Message Date
Maksym Pavlenko
c95854caca Rework shim logger shutdown process
Signed-off-by: Maksym Pavlenko <makpav@amazon.com>
2020-04-08 10:31:55 -07:00
Phil Estes
ab89e63c6d Move isFifo from process/io to sys/ and make public
Make "IsFifo" a public function for use by other parts of containerd
codebase.

Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
(cherry picked from commit 0c78dacbc5)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-03 22:45:53 +02:00
Lantao Liu
306d6d4b55 Fix container pid.
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-12-02 10:51:16 -08:00
Michael Crosby
5028701f1a Merge pull request #3753 from thaJeztah/1.3_backport_avoid_unnecessary_runc_state
[release/1.3 backport] Use cached state instead of `runc state`.
2019-11-27 19:24:33 -05:00
Michael Crosby
0f6aab184a Handle large output in v2 shim with TTY
Reized the I/O buffers to align with the size of the kernel buffers with fifos
and move the close aspect of the console to key off of the stdin closing.

Fixes #3738

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
2019-10-14 11:33:21 -04:00
Lantao Liu
9abfc70043 Use cached state instead of runc state.
Signed-off-by: Lantao Liu <lantaol@google.com>
(cherry picked from commit 18be6e3714)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-10-14 16:57:30 +02:00
Michael Crosby
0a21292225 Check for more kill error types
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-09-23 15:36:34 -04:00
Michael Crosby
6601b406b7 Refactor runtime code for code sharing
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-07-08 11:47:53 -04:00