#include "istream-chain.h"
#include "ostream.h"
#include "time-util.h"
+#include "sleep.h"
#include "unlink-directory.h"
#include "write-full.h"
#include "connection.h"
static void test_connection_timed_out_input(struct server_connection *conn)
{
- sleep(5);
+ i_sleep_intr_secs(5);
server_connection_deinit(&conn);
}
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);
}
if (fd_listen != -1)
if (debug)
i_debug("PID=%s", my_pid);
- usleep(100000); /* wait a little for server setup */
+ i_sleep_intr_msecs(100); /* wait a little for server setup */
ioloop = io_loop_create();
if (client_test())