[CRIU] [PATCH] libcriu: don't use the shell_job option
Andrew Vagin
avagin at openvz.org
Wed May 13 06:18:23 PDT 2015
Signed-off-by: Andrew Vagin <avagin at openvz.org>
---
test/libcriu/run.sh | 2 +-
test/libcriu/test_errno.c | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/test/libcriu/run.sh b/test/libcriu/run.sh
index e1a9123..e38c76f 100755
--- a/test/libcriu/run.sh
+++ b/test/libcriu/run.sh
@@ -28,7 +28,7 @@ function run_test {
else
echo "== Test $1"
mkdir wdir/i/$1/
- if ! ./$1 wdir/s/cs.sk wdir/i/$1/; then
+ if ! setsid ./$1 wdir/s/cs.sk wdir/i/$1/ < /dev/null &>> wdir/i/$1/test.log; then
echo "$1: FAIL"
RESULT=1
fi
diff --git a/test/libcriu/test_errno.c b/test/libcriu/test_errno.c
index c1a33b1..c312be9 100644
--- a/test/libcriu/test_errno.c
+++ b/test/libcriu/test_errno.c
@@ -97,7 +97,6 @@ static int process_exists(void)
printf("--- Try to restore process which pid is already taken by other process\n");
get_base_req();
- criu_set_shell_job(true);
criu_set_leave_running(true);
if (criu_dump()) {
fprintf(stderr, "Self-dump failed");
--
2.1.0
More information about the CRIU
mailing list