From: Howard Chu Date: Thu, 29 Aug 2002 13:38:36 +0000 (+0000) Subject: Fix previous commit - use EWOULDBLOCK instead of EAGAIN X-Git-Tag: NO_SLAP_OP_BLOCKS~1108 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1dd1c375bb38edccd88b039ee298a71e2e4c53a0;p=openldap Fix previous commit - use EWOULDBLOCK instead of EAGAIN --- diff --git a/libraries/libldap/cyrus.c b/libraries/libldap/cyrus.c index 34cc0d8e42..f2491f3c38 100644 --- a/libraries/libldap/cyrus.c +++ b/libraries/libldap/cyrus.c @@ -335,7 +335,7 @@ sb_sasl_write( Sockbuf_IO_Desc *sbiod, void *buf, ber_len_t len) return ret; /* Still have something left?? */ if ( p->buf_out.buf_ptr != p->buf_out.buf_end ) { - errno = EAGAIN; + errno = EWOULDBLOCK; return 0; } } diff --git a/libraries/libldap/request.c b/libraries/libldap/request.c index c45a7769f5..0ffd592b21 100644 --- a/libraries/libldap/request.c +++ b/libraries/libldap/request.c @@ -146,7 +146,7 @@ ldap_int_flush_request( LDAPConn *lc = lr->lr_conn; if ( ber_flush( lc->lconn_sb, lr->lr_ber, 0 ) != 0 ) { - if ( errno == EWOULDBLOCK || errno == EAGAIN ) { + if ( errno == EWOULDBLOCK ) { /* need to continue write later */ lr->lr_status = LDAP_REQST_WRITING; ldap_mark_select_write( ld, lc->lconn_sb );