[Date Prev][Date Next]
Re: un_bind() crash if LDAP server goes away
At 06:37 PM 1/19/99 -0600, Ashely Hornbeck wrote:
>If I have a connection (LPAD *ld) and the LPAD server goes down, how do I
>If I do ldap_unbind(ld) my client exits. I get SIGPIPE.
>What else can I do?
You should catch or ignore the SIGPIPE. For example,
near the beginning of your program will keep your program
from exiting in such cases.
>free(ld) will not work will it?
Don't do that!