[CRIU] Re: [PATCH] ipc: added error print in case of shm obj read
failure
Pavel Emelyanov
xemul at parallels.com
Fri Feb 10 06:37:06 EST 2012
On 02/10/2012 02:16 PM, Kinsbursky Stanislav wrote:
>
>
> Signed-off-by: Stanislav Kinsbursky <skinsbursky at parallels.com>
Ack
> ---
> ipc_ns.c | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/ipc_ns.c b/ipc_ns.c
> index 339c770..6e08c5b 100644
> --- a/ipc_ns.c
> +++ b/ipc_ns.c
> @@ -373,8 +373,10 @@ static int prepare_ipc_shm(int pid)
> struct ipc_shm_entry shm;
>
> ret = read_img_eof(fd, &shm);
> - if (ret < 0)
> + if (ret < 0) {
> + pr_err("Failed to read IPC shared memory object\n");
> return -EIO;
> + }
> if (ret == 0)
> break;
>
>
More information about the CRIU
mailing list