From: Stephan Bosch Date: Sun, 25 Feb 2018 17:03:51 +0000 (+0100) Subject: lib-program-client: test-program-client-unix: Handle test client connections non... X-Git-Tag: 2.3.9~2094 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5a55c51517bcf14e8b0eb1142d3930e835c3969;p=thirdparty%2Fdovecot%2Fcore.git lib-program-client: test-program-client-unix: Handle test client connections non-blocking. --- 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;