payall4u
b437938d2f
Transfer error to ErrNotFound when kill a not exist container, also add
...
test case.
Signed-off-by: payall4u <404977848@qq.com>
Add integration test case
Signed-off-by: payall4u <404977848@qq.com>
2020-05-11 21:53:43 +08:00
Maksym Pavlenko
917e7646ae
Add binary IO tests
...
Signed-off-by: Maksym Pavlenko <makpav@amazon.com>
2020-04-17 16:50:43 -07:00
Maksym Pavlenko
9175401b28
Cleanup binary IO resources on error
...
Signed-off-by: Maksym Pavlenko <makpav@amazon.com>
2020-04-17 15:56:21 -07:00
Maksym Pavlenko
0dc7c85956
Don't use timeout package when stopping shim logger
...
containerd loads timeout values from config.toml and populated those
values to `timeout` package at launch. So when using `timeout` package
from shim, there are default values and config file is ignored.
So use a hardcoded value for binary IO.
Signed-off-by: Maksym Pavlenko <makpav@amazon.com>
2020-04-17 15:06:18 -07:00
Maksym Pavlenko
0caa233158
Rework shim logger shutdown process
...
Signed-off-by: Maksym Pavlenko <makpav@amazon.com>
2020-04-07 12:42:04 -07:00
Phil Estes
0c78dacbc5
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>
2020-03-25 10:44:17 -04:00
Lantao Liu
a6b6097c90
Fix container pid.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-12-02 01:02:22 -08:00
Michael Crosby
f8cca26f3c
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>
2019-10-11 15:42:05 -04:00
Lantao Liu
18be6e3714
Use cached state instead of runc state
.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-10-03 10:53:13 -07: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