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

Submitted by Cyrill Gorcunov on Sept. 14, 2018, 2:08 p.m.

Details

Message ID 20180914140842.6462-16-gorcunov@gmail.com
State New
Series "unix: Add support for bindmounted dgram sockets"
Headers show

Commit Message

Cyrill Gorcunov Sept. 14, 2018, 2:08 p.m.
No need to check for pair argument, it is rather confusing.

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

Patch hide | download patch | download mbox

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;