[Date Prev][Date Next] [Chronological] [Thread] [Top]

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
>free ld?
>
>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,
placing:
	signal(SIGKILL, SIG_IGN);

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!