From fa8b77b06073fda56991f1aa66b4d29f6771ce7f Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Tue, 2 Jun 2015 20:03:58 +0100 Subject: [PATCH] kill -0 $CONTAINER_PID does not work inside weaveexec container since $CONTAINER_PID is in a different process namespace. Fixes #829. --- weave | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weave b/weave index c44c527d..d8febd21 100755 --- a/weave +++ b/weave @@ -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 echo "Container $CONTAINER died" >&2 else echo "Failure during network configuration for container $CONTAINER:" >&2