From d5a55c51517bcf14e8b0eb1142d3930e835c3969 Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Sun, 25 Feb 2018 18:03:51 +0100 Subject: [PATCH] lib-program-client: test-program-client-unix: Handle test client connections non-blocking. --- src/lib-program-client/test-program-client-unix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib-program-client/test-program-client-unix.c b/src/lib-program-client/test-program-client-unix.c index 19ecc5d20d..f4312f1a40 100644 --- a/src/lib-program-client/test-program-client-unix.c +++ b/src/lib-program-client/test-program-client-unix.c @@ -203,6 +203,8 @@ static void test_program_connected(struct test_server *server) if (fd < 0) i_fatal("Failed to accept connection: %m"); + net_set_nonblock(fd, TRUE); + pool_t pool = pool_alloconly_create("test_program client", 1024); client = p_new(pool, struct test_client, 1); client->pool = pool; -- 2.47.3