BUG: https://bugzilla.samba.org/show_bug.cgi?id=13520
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
* @param[in] ev Tevent context
* @param[in] done Boolean flag to indicate when to stop waiting
* @param[in] timeout How long to wait
- * @return 0 on succes, ETIME on timeout, and errno on failure
+ * @return 0 on succes, ETIMEDOUT on timeout, and errno on failure
*/
int ctdb_client_wait_timeout(struct tevent_context *ev, bool *done,
struct timeval timeout);
talloc_free(mem_ctx);
if (timed_out) {
- return ETIME;
+ return ETIMEDOUT;
}
return 0;
ret = ctdb_client_wait_timeout(ev, &done,
tevent_timeval_current_ofs(options.timelimit, 0));
- if (ret != 0 && ret == ETIME) {
+ if (ret != 0 && ret == ETIMEDOUT) {
D_ERR("client_wait_timeout() failed, ret=%d\n", ret);
talloc_free(client);
exit(1);