]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-program-client: test-program-client-unix: Handle test client connections non...
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sun, 25 Feb 2018 17:03:51 +0000 (18:03 +0100)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Sun, 18 Mar 2018 10:53:18 +0000 (12:53 +0200)
src/lib-program-client/test-program-client-unix.c

index 19ecc5d20de0d518ff571065b125e7d8c90a9bc8..f4312f1a409b4bb50506de9b0d7d5acd0d28518b 100644 (file)
@@ -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;