From 405c68abf9cb493bd533364e83ceb84f530cd8ce Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 26 Oct 2009 23:52:55 +0000 Subject: [PATCH] For prev commit, check for EINTR/EAGAIN/EWOULDBLOCK --- libraries/libldap/sasl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libldap/sasl.c b/libraries/libldap/sasl.c index 268a94e3f6..43c7b5c7e4 100644 --- a/libraries/libldap/sasl.c +++ b/libraries/libldap/sasl.c @@ -728,7 +728,7 @@ sb_sasl_generic_write( Sockbuf_IO_Desc *sbiod, void *buf, ber_len_t len) /* error? */ int err = sock_errno(); /* caller can retry this */ - if ( err == EAGAIN ) + if ( err == EAGAIN || errno == EWOULDBLOCK || errno == EINTR ) p->flags |= LDAP_PVT_SASL_PARTIAL_WRITE; return ret; } else if ( p->buf_out.buf_ptr != p->buf_out.buf_end ) { -- 2.39.5