It'll make --debug not work, we removed --debug in
master, but we should keep it for backward compatibility
in 0.2.x.
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This deadlock occurs when the oom channel get full as a process gets
added to the Monitor. Since the channel is full the lock monitor will
never be released preventing the task trying to add a new process to
the monitor to ever complete.
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
The default terminal setting for a new pty on Linux (unix98) has +ONLCR,
resulting in '\n' writes by a container process to be converted to
'\r\n' reads by the managing process. This is quite unexpected, To fix it, make
the terminal sane after opening it by setting -ONLCR.
this patch fix method comes from: eea28f480d
thanks @cyphar Aleksa Sarai <asarai@suse.de>
Signed-off-by: Wang Long <long.wanglong@huawei.com>
grep -r "range map" show 5 parts use map to range enum types,
use slice instead can get better performance and less memory usage.
Signed-off-by: Wang Long <long.wanglong@huawei.com>
we should check the `derr` at here, not the `err`.
Signed-off-by: Wang Long <long.wanglong@huawei.com>
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Before this change we would rely on containerd to call delete that also
had logic to kill all processes in a container via cgroups for
containers that run in another pid namespace. This changes allows us to
decouple the kil all logic and delete so that we don't have to have
containerd calling delete and it can all be handled in the shim again.
This will hopefully prevent races where higher level logic was trying to
remove a containers fs before the shim actually exits. Now the exit
fifo will not be closed until the shim actually exits.
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
log:
`git log--no-merges 02f8fa7863dd3f82909a73e2061897828460d52f..ac031b5bf1cc92239461125f4c1ffb760522bbf2`
```
* d5525cc add test cases for exec command
* fd7ab60 libcontainer: make tests to make sure we don't mess with \r
* eea28f4 libcontainer: io: stop screwing with \n in console output
* 603c151 (fork/ambient-tag, ambient-tag) Move ambient capabilties
* behind build tag
* fcc40b7 (fork/remove-exec-panic, remove-exec-panic) Remove panic from
* init
* 34d7c5c fix error message
* 9b15bf1 nsenter: fix up comments
* b15668b Fix all typos found by misspell
* 1535e67 Updating container state and status API in README
* 81d6088 Unify rootfs validation
* 2d0d936 Small correction in update resource file usage
* 16ad385 Correction in util error messages
* 3db2c43 man page update for delete command
* 4d76a85 Clarify libseccomp-devel in guide
* f520eab Remove unnecessary cloneflag validation
* a0f7977 Detect and forbid duplicated namespace in spec
* 6c147f8 Make parent mount private before bind mounting rootfs
* 1ab3c03 validator: actually test success
* 2a94c36 validator: unbreak sysctl net.* validation
* 2c74f86 Employ jq and state command to make sure that pid-file
* contains the right information
* e3cd191 nsenter: un-split clone(cloneflags) for RHEL
* 2cd9c31 nsenter: guarantee correct user namespace ordering
* ed053a7 nsenter: specify namespace type in setns()
* 4cfbd25 Small typo in README
* ba1c0b4 check the arguments for `runc create`
* 41c3581 add test cases about host ns
* bc84f83 fixdocker/docker#27484
* f8e6b5a rootfs: make pivot_root not use a temporary directory
* b2a194f Updating bash completion for ps command
* f550f04 fix nits in stderr log
* 596a4c3 add test cases for create command
* 5aef160 add test cases for list command
* c4e7f01 Add an integration test for tmpfs copy up
* c7406f7 Support copyup mount extension for tmpfs mounts
* 4356468 Parse the new extension flags
* f5103d3 config: Add new Extensions flag to support custom mount
* options in runc
* 799911a godeps: Add fileutils dependency
* c179b0f Some refactor and cleanup
* a83f5ba Fix issue in `GetProcessStartTime`
* d223e2a Ignore error when starting transient unit that already exists
* 6e97f3a tests: mask: use test paths rather than /sys
* 528bf37 ps error logging improvement
* 38560a0 checkpoint: fix gofmt
* ed6c5c0 update the man for runc delete command
* a367e4b Add num check for kill command
* 034cba6 Fixing runc panic for missing file mode
* 6932807 Add support for r/o mount labels
* 74bfe50 start mulit-containers with `runc start` command
* 2f5c0af pause and resume multi-containers
* 4b263c9 Fixing runc panic during hugetlb pages
* 1cd0502 Valide platform on loading config.json
* 491cada DupSecOpt needs to match InitLabels
* affc105 tiny fix, add a null check for specs.Resources.Pids.Limit
* dba9253 remove /tmp/bats from dev_runc
* 1b876b0 fix typos with misspell
* 5eaa9ed just fix a typo
* 9df4847 tiny fix
* 7e38b37 Delete: exit with non zero if one of the containers
* encountered an error
* 1a6391b Revert "simplify ps command"
* 98afb73 Add integration test for ps command
* 067ce21 simplify ps command
* 11222ee (fork/kmem) Don't enable kernel mem if not set
* 1a75f81 systemd cgroup driver supports slice management
```
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>