[CRIU] [PATCH 15/19] unix: make_socket -- Break connected pair if requested

Cyrill Gorcunov gorcunov at gmail.com
Fri Sep 14 17:08:38 MSK 2018


No need to check for pair argument, it is rather confusing.

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 criu/sk-unix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/sk-unix.c b/criu/sk-unix.c
index 116f81a67011..34e3ff86a5b5 100644
--- a/criu/sk-unix.c
+++ b/criu/sk-unix.c
@@ -1925,7 +1925,7 @@ static int make_socket(struct unix_sk_info *ui, int sks[2], bool pair, bool disj
 		}
 	}
 
-	if (disjoin_master && pair)
+	if (disjoin_master)
 		return break_connected(ui, sks[0]);
 
 	return 0;
-- 
2.17.1



More information about the CRIU mailing list