* [PATCH][cr-test]: run-fcntltests.sh: Thaw and cleanup processes on error
@ 2010-02-09 19:31 Sukadev Bhattiprolu
[not found] ` <20100209193155.GA30005-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Sukadev Bhattiprolu @ 2010-02-09 19:31 UTC (permalink / raw)
To: serue-r/Jw6+rmf7HQT0dZR+AlfA; +Cc: Containers
From: Sukadev Bhattiprolu <sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
Date: Tue, 9 Feb 2010 11:08:22 -0800
Subject: [PATCH][cr-test]: run-fcntltests.sh: Thaw and cleanup processes on error
If the fcntl tests (filelock[12], filelease1 and fsetown1) fail during
checkpoint, the processes end up frozen and appear hung. Thaw the
processes and terminate them before exiting the script.
Bug reported by Serge Hallyn.
Signed-off-by: Sukadev Bhattiprolu <sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
---
fileio/run-fcntltests.sh | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/fileio/run-fcntltests.sh b/fileio/run-fcntltests.sh
index f76c942..35be131 100755
--- a/fileio/run-fcntltests.sh
+++ b/fileio/run-fcntltests.sh
@@ -54,6 +54,8 @@ checkpoint()
if [ $ret -ne 0 ]; then
$ECHO "***** FAIL: Checkpoint of $pid failed"
ps -efL |grep $TEST_CMD >> $SCRIPT_LOG
+ killall -9 `basename $TEST_CMD`
+ thaw
exit 1;
fi
}
--
1.6.6.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH][cr-test]: run-fcntltests.sh: Thaw and cleanup processes on error
[not found] ` <20100209193155.GA30005-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
@ 2010-02-09 20:32 ` Serge E. Hallyn
0 siblings, 0 replies; 2+ messages in thread
From: Serge E. Hallyn @ 2010-02-09 20:32 UTC (permalink / raw)
To: Sukadev Bhattiprolu; +Cc: Containers
Quoting Sukadev Bhattiprolu (sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org):
> From: Sukadev Bhattiprolu <sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
> Date: Tue, 9 Feb 2010 11:08:22 -0800
> Subject: [PATCH][cr-test]: run-fcntltests.sh: Thaw and cleanup processes on error
>
> If the fcntl tests (filelock[12], filelease1 and fsetown1) fail during
> checkpoint, the processes end up frozen and appear hung. Thaw the
> processes and terminate them before exiting the script.
>
> Bug reported by Serge Hallyn.
Thanks, will push this and the eclone tests.
> Signed-off-by: Sukadev Bhattiprolu <sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
> ---
> fileio/run-fcntltests.sh | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/fileio/run-fcntltests.sh b/fileio/run-fcntltests.sh
> index f76c942..35be131 100755
> --- a/fileio/run-fcntltests.sh
> +++ b/fileio/run-fcntltests.sh
> @@ -54,6 +54,8 @@ checkpoint()
> if [ $ret -ne 0 ]; then
> $ECHO "***** FAIL: Checkpoint of $pid failed"
> ps -efL |grep $TEST_CMD >> $SCRIPT_LOG
> + killall -9 `basename $TEST_CMD`
> + thaw
> exit 1;
> fi
> }
> --
> 1.6.6.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-09 20:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-09 19:31 [PATCH][cr-test]: run-fcntltests.sh: Thaw and cleanup processes on error Sukadev Bhattiprolu
[not found] ` <20100209193155.GA30005-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2010-02-09 20:32 ` Serge E. Hallyn
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.