Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

kill -0 $CONTAINER_PID does not work inside weaveexec container #830

Merged
merged 1 commit into from
Jun 3, 2015

Conversation

rade
Copy link
Member

@rade rade commented Jun 2, 2015

since $CONTAINER_PID is in a different process namespace.

Fixes #829.

@rade rade added this to the next milestone Jun 2, 2015
@@ -335,7 +335,7 @@ with_container_netns () {
shift 1
if ! "$@" >$IP_TMPOUT 2>$IP_TMPERR ; then
STATUS=1
if ! kill -0 "$CONTAINER_PID" 2>/dev/null ; then
if [ ! -d /$PROCFS/$CONTAINER_PID ] ; then

This comment was marked as abuse.

@paulbellamy paulbellamy assigned rade and unassigned paulbellamy Jun 3, 2015
since $CONTAINER_PID is in a different process namespace.

Fixes weaveworks#829.
@rade rade force-pushed the 829_fix_container_death_check branch from d15e123 to fa8b77b Compare June 3, 2015 10:16
rade added a commit that referenced this pull request Jun 3, 2015
kill -0 $CONTAINER_PID does not work inside weaveexec container

Fixes #829.
@rade rade merged commit 52f31f0 into weaveworks:master Jun 3, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

weave ... network configuration errors swallowed and misreported as container deaths
2 participants