Fix compilation error in ipa-cldap.

https://fedorahosted.org/freeipa/ticket/3896
This commit is contained in:
Jan Cholasta
2013-12-04 18:43:20 +01:00
committed by Petr Viktorin
parent 8bfa79289a
commit 07ddfdd127

View File

@@ -82,7 +82,9 @@ static int ipa_cldap_stop(Slapi_PBlock *pb)
}
/* send stop signal to terminate worker thread */
write(ctx->stopfd[1], "", 1);
do {
ret = write(ctx->stopfd[1], "", 1);
} while (ret == -1 && errno == EINTR);
close(ctx->stopfd[1]);
ret = pthread_join(ctx->tid, &retval);