"\r\n";
/* wait one second to respond */
- sleep(1);
+ i_sleep_intr_secs(1);
/* respond */
o_stream_nsend_str(conn->conn.output, resp);
/* respond */
o_stream_nsend_str(conn->conn.output, resp);
- sleep(10);
+ i_sleep_intr_secs(10);
server_connection_deinit(&conn);
}
"\r\n";
/* wait one second to respond */
- sleep(1);
+ i_sleep_intr_secs(1);
/* respond */
o_stream_nsend_str(conn->conn.output, resp);
static void test_dns_timeout_input(struct server_connection *conn ATTR_UNUSED)
{
/* hang */
- sleep(100);
+ i_sleep_intr_secs(100);
server_connection_deinit(&conn);
}
o_stream_nsend_str(conn->conn.output, resp);
i_close_fd(&fd_listen);
- sleep(500);
+ i_sleep_intr_secs(500);
}
static void test_server_reconnect_failure(unsigned int index)
/* wait for it to be killed; this way, valgrind
will not object to this process going away
inelegantly. */
- sleep(60);
+ i_sleep_intr_secs(60);
exit(1);
}
i_close_fd(&fd_listen);
i_close_fd(&fd_listen);
/* wait for it to be killed; this way, valgrind will not
object to this process going away inelegantly. */
- sleep(60);
+ i_sleep_intr_secs(60);
exit(1);
}
i_close_fd(&fd_listen);