[CRIU] [PATCH] maps007: save core files in a error case

Andrey Vagin avagin at openvz.org
Tue Feb 25 03:24:36 PST 2014


Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 test/zdtm/live/transition/maps007.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/zdtm/live/transition/maps007.c b/test/zdtm/live/transition/maps007.c
index ea09a76..a56760a 100644
--- a/test/zdtm/live/transition/maps007.c
+++ b/test/zdtm/live/transition/maps007.c
@@ -160,6 +160,7 @@ int main(int argc, char **argv)
 
 	return 0;
 err:
-	kill(child, SIGKILL);
+	kill(child, SIGSEGV);
+	*((int *) 0) = 0;
 	return 1;
 }
-- 
1.8.5.3



More information about the CRIU mailing list