Oh, I see now.  It's the line after Jean's patch where
distcc checks errno:

    while ((connect(fd, sa, salen) == -1) && errno == EINTR)
        ;

    if (errno && errno != EINPROGRESS) {

So Jean's patch is right.   It might be cleaner to avoid
setting errno, though, and write this all as

    int failed = 0;
    do
        failed = connect(fd, sa, salen);
    while (failed && errno == EINTR);

    if (failed && errno != EINPROGRESS) {

What do you think, Jean? Sorry for not understanding your
patch originally.
- Dan
__ distcc mailing list http://distcc.samba.org/
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/distcc

Reply via email to