[Date Prev][Date Next]
slapd: errno and Debug() function (ITS#276)
Full_Name: J.R. Heisey
OS: Windows NT
Submission from: (NULL) (188.8.131.52)
Submit an ITS to remind me to port the -devel fix to 1.2.
At 11:48 AM 8/31/99 -0700, you wrote:
>In send_search_entry() errno is tested to determine what
>error occured in ber_flush(). However two other functions
>are called before errno is tested those being Debug()
>and ldap_pvt_thread_mutex_unlock(). I did look into the
>thread function but Debug definitely has the potential
>of changing the value of errno before the test.
>This will get more complicated for a Windows NT port
>because WSAGetLastError() needs to be called to test
>for EWOULDBLOCK instead of testing for errno.
>Same issue in send_ldap_result2().
>Perhaps Debug() should store and reset the errno value.