[CRIU] [PATCH 3/3] files: Don't call for run_unix_connections if
there error happened earlier
Cyrill Gorcunov
gorcunov at openvz.org
Tue Apr 10 10:47:12 EDT 2012
It doesn't make sense to try to connect sockets if error
happened previously.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
files.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/files.c b/files.c
index ef037d1..aee68ae 100644
--- a/files.c
+++ b/files.c
@@ -468,7 +468,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)
--
1.7.7.6
More information about the CRIU
mailing list