Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
runc always shows "container in use" if /var/run/ocf/container exists However, there are two cases 1) case 1: "container in use" 2) case 2: /var/run/ocf/container still exists after runc was terminated by SIGKILL or abnormal crash For case 2, runc should yield "delete the lock dir" instead of "container in use" This patch is for this issue using "pid" file in /var/run/ocf/container/task Signed-off-by: Jin-Hwan Jeong <jhjeong.kr@gmail.com> patch for issue opencontainers#39: runc always shows "container in use" if /var/run/ocf/container exists However, there are two cases 1) case 1: "container in use" 2) case 2: /var/run/ocf/container still exists after runc was terminated by SIGKILL or abnormal crash For case 2, runc should yield "delete the lock dir" instead of "container in use" This patch is for this issue using "pid" file in /var/run/ocf/container/task Also, I refined indentation and added code for slice length check Signed-off-by: Jin-Hwan Jeong <jhjeong.kr@gmail.com>
- Loading branch information