version 1.95, 2004/09/04 02:54:29
|
version 1.96, 2004/10/09 01:16:29
|
Line 1
|
Line 1
|
/* result.c - wait for an ldap result */ |
/* result.c - wait for an ldap result */ |
/* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.94 2004/07/24 01:13:29 hyc Exp $ */ |
/* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.95 2004/09/04 02:54:29 kurt Exp $ */ |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
* |
* |
* Copyright 1998-2004 The OpenLDAP Foundation. |
* Copyright 1998-2004 The OpenLDAP Foundation. |
Line 243 wait4msg(
|
Line 243 wait4msg(
|
|
|
#ifdef LDAP_DEBUG |
#ifdef LDAP_DEBUG |
if ( timeout == NULL ) { |
if ( timeout == NULL ) { |
Debug( LDAP_DEBUG_TRACE, "wait4msg (infinite timeout), msgid %d\n", |
Debug( LDAP_DEBUG_TRACE, |
msgid, 0, 0 ); |
"wait4msg (infinite timeout), msgid %d\n", |
|
msgid, 0, 0 ); |
} else { |
} else { |
Debug( LDAP_DEBUG_TRACE, "wait4msg (timeout %ld sec, %ld usec), msgid %d\n", |
Debug( LDAP_DEBUG_TRACE, |
(long) timeout->tv_sec, (long) timeout->tv_usec, msgid ); |
"wait4msg (timeout %ld sec, %ld usec), msgid %d\n", |
|
(long) timeout->tv_sec, (long) timeout->tv_usec, msgid ); |
} |
} |
#endif /* LDAP_DEBUG */ |
#endif /* LDAP_DEBUG */ |
|
|
Line 302 wait4msg(
|
Line 304 wait4msg(
|
{ |
{ |
ld->ld_errno = (rc == -1 ? LDAP_SERVER_DOWN : |
ld->ld_errno = (rc == -1 ? LDAP_SERVER_DOWN : |
LDAP_TIMEOUT); |
LDAP_TIMEOUT); |
return( rc ); |
return -1; |
} |
} |
|
|
if ( rc == -1 ) { |
if ( rc == -1 ) { |
Line 351 wait4msg(
|
Line 353 wait4msg(
|
} |
} |
} |
} |
|
|
return( rc ); |
return rc; |
} |
} |
|
|
|
|