Commit eb12c976 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

pipes: Add test that pipe data is restored without errors

This eliminates the warning below as well

 | pipes.c: In function ‘open_pipe’:
 | pipes.c:252:6: error: variable ‘ret’ set but not used [-Werror=unused-but-set-variable]
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent fc4768f4
...@@ -266,6 +266,8 @@ static int open_pipe(struct file_desc *d) ...@@ -266,6 +266,8 @@ static int open_pipe(struct file_desc *d)
} }
ret = restore_pipe_data(pfd[1], pi); ret = restore_pipe_data(pfd[1], pi);
if (ret)
return -1;
sock = socket(PF_UNIX, SOCK_DGRAM, 0); sock = socket(PF_UNIX, SOCK_DGRAM, 0);
if (sock < 0) { if (sock < 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment