mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-25 02:58:54 +00:00
files: Don't call for run_unix_connections if there error happened earlier
It doesn't make sense to try to connect sockets if error happened previously. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
611343a50c
commit
827f1a2f0b
1 changed files with 4 additions and 1 deletions
5
files.c
5
files.c
|
|
@ -477,7 +477,10 @@ int prepare_fds(int pid)
|
|||
|
||||
close(fdinfo_fd);
|
||||
|
||||
return run_unix_connections();
|
||||
if (!ret)
|
||||
ret = run_unix_connections();
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
int prepare_fs(int pid)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue