From 827f1a2f0b5dcaee31a5fa0585c83bfa45b9903d Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Tue, 10 Apr 2012 18:47:00 +0400 Subject: [PATCH] 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 Signed-off-by: Pavel Emelyanov --- files.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/files.c b/files.c index ee84b2f53..7844b0ef2 100644 --- a/files.c +++ b/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)