[CRIU] [crtools-bot] ipc: Don't fail on "show" if there is no data dumped

Cyrill Gorcunov gorcunov at openvz.org
Thu Feb 2 12:22:21 EST 2012


The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit 995b0bf5e71db7cdf4cd6696d9830a9025560f9b
Author: Cyrill Gorcunov <gorcunov at openvz.org>
Date:   Thu Feb 2 21:15:44 2012 +0400

    ipc: Don't fail on "show" if there is no data dumped
    
    Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 ipc_ns.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ipc_ns.c b/ipc_ns.c
index a54d6ec..ee471a1 100644
--- a/ipc_ns.c
+++ b/ipc_ns.c
@@ -168,7 +168,7 @@ static void show_ipc_data(int fd)
 	int ret;
 	struct ipc_ns_data ipc;
 
-	ret = read_img(fd, &ipc);
+	ret = read_img_eof(fd, &ipc);
 	if (ret <= 0)
 		return;
 	show_ipc_entry(&ipc.entry);


More information about the CRIU mailing list