aboutgitcodebugslistschat
path: root/repair.c
diff options
context:
space:
mode:
Diffstat (limited to 'repair.c')
-rw-r--r--repair.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/repair.c b/repair.c
index 3e0e3e0..f31ccce 100644
--- a/repair.c
+++ b/repair.c
@@ -99,6 +99,10 @@ int repair_listen_handler(struct ctx *c, uint32_t events)
return EEXIST;
}
+ /* We want the accepted socket to be blocking; we use it during
+ * migration which is a synchronous interruption to our normal
+ * non-blocking behaviour.
+ */
if ((c->fd_repair = accept4(c->fd_repair_listen, NULL, NULL,
SOCK_CLOEXEC)) < 0) {
rc = errno;